-
Nested 3d layer point space transformation?
I have a null layer (“emission point”) inside a 3d comp (“Figurine”) that’s parented to another moving layer.
Which is in turn, nested in a main 3d comp with collapse transformations turned on.
I’m trying to get the coordinates of the that null layer in my main comp and am having trouble with the following code:ep = comp(“Figurine”).layer(“emission point”);
p = ep.toWorld(ep.anchorPoint);
pFeels like I need to do 2 transformations: one from parented null layer to its 3d world position of “Figurine” comp, and then transform to world space in main comp- something like this?:
ep = comp(“Figurine”).layer(“remote emission point”);
FCompP = ep.toComp(ep.anchorPoint);
p = FCompP.toWorld(ep.anchorPoint);
pWhich doesn’t work….
I’m sure I’ve missed this in the posts somewhere, but anyone have any ideas?
Thanks in advance!
Brian