Page 1 of 1
Getting parented null's position values ?
Posted: May 12th, 2009, 10:59 am
by serhatedip
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

Re: Getting parented null's position values ?
Posted: May 12th, 2009, 11:26 am
by Dan Ebberts
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
Re: Getting parented null's position values ?
Posted: May 12th, 2009, 3:07 pm
by serhatedip
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
Re: Getting parented null's position values ?
Posted: May 13th, 2009, 12:16 am
by Paul Tuersley
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.
Re: Getting parented null's position values ?
Posted: May 13th, 2009, 1:51 am
by serhatedip
o yeah it worked when i actually use it on my project

thanks alot....