Getting parented null's position values ?

Moderators: Disciple, zlovatt

Post Reply
serhatedip
Posts: 3
Joined: April 15th, 2007, 2:43 am

hi,

i need to get the position values of the null which i attached to a layer to use them to drive knoll light's location x,y.
null is attached on a non moving layer but there is a camera zooming out the scene.
i am adding a sample project file to make it clear.

thanks in advance :)
Attachments
sample.rar
AE 7.0.1 File...
(2.75 KiB) Downloaded 782 times
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

I didn't look at your project file, but the expression will look like this:

N = thisComp.layer("Null 1");
N.toComp(N.anchorPoint)

Dan
serhatedip
Posts: 3
Joined: April 15th, 2007, 2:43 am

thnx, i tried but it dosent give me the coordinates of the null according to the comp window :(
the thing is my null is 3d but i need 2d x,y coordinates from it somehow
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

I just tried it on your project and it worked for me. Make sure you're applying the expression to a 2D layer. For example, apply it to the Position property of a 2D layer, or the Lens Flare position of an effect applied to an adjustment layer.
serhatedip
Posts: 3
Joined: April 15th, 2007, 2:43 am

o yeah it worked when i actually use it on my project :D thanks alot....
Post Reply