Layer Space Transform Question.

Moderators: Disciple, zlovatt

Post Reply
shapeOfMotion
Posts: 6
Joined: August 14th, 2009, 8:04 am

Hi all!

I would like to get the 2d position of a null object nested in a 3d comp.

To explain what I have:

In the top level comp I have a null object (2d) and a comp (3d).
the 3d comp is rotated in 3d.

To get the 2d position of the nested null (inside the 3d comp) I use the following expression:
l = comp("the 3d comp").layer("the nested null");
l.toComp(l.anchorPoint);

but the expression seems to ignore the transform (rotation) applied to the 3d comp.

What am I doing wrong ?

cheers, Johan
Mylenium
Posts: 139
Joined: July 20th, 2005, 12:07 am

Isn't it obvious? You are applying 2 transform levels and don't do anything to cater for that. That aside, layer space transforms do not work across comps. They only work inside the same comp. You will have to find other methods.

Mylenium
[Pour Mylène, ange sur terre]
shapeOfMotion
Posts: 6
Joined: August 14th, 2009, 8:04 am

If it was obvious I wouldn´t ask ... :)
But thank you for your answer. I wasn´t aware the it didn´t work across comps.

cheers,

Johan
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

Try this:

L1 = comp("the 3d comp").layer("the nested null");
P = L1.toWorld(L1.anchorPoint);
L2 = thisComp.layer("the 3d comp");
L2.toComp(P);



Dan
shapeOfMotion
Posts: 6
Joined: August 14th, 2009, 8:04 am

Great work !

That´s what I call an answer !

cheers,
Johan
Post Reply