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
Layer Space Transform Question.
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
Mylenium
[Pour Mylène, ange sur terre]
-
- 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

But thank you for your answer. I wasn´t aware the it didn´t work across comps.
cheers,
Johan
-
- 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
L1 = comp("the 3d comp").layer("the nested null");
P = L1.toWorld(L1.anchorPoint);
L2 = thisComp.layer("the 3d comp");
L2.toComp(P);
Dan
-
- Posts: 6
- Joined: August 14th, 2009, 8:04 am
Great work !
That´s what I call an answer !
cheers,
Johan
That´s what I call an answer !
cheers,
Johan