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
Getting parented null's position values ?
-
- Posts: 3
- Joined: April 15th, 2007, 2:43 am
- Attachments
-
- sample.rar
- AE 7.0.1 File...
- (2.75 KiB) Downloaded 822 times
-
- 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
N = thisComp.layer("Null 1");
N.toComp(N.anchorPoint)
Dan
-
- 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
the thing is my null is 3d but i need 2d x,y coordinates from it somehow
-
- 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.
-
- Posts: 3
- Joined: April 15th, 2007, 2:43 am
o yeah it worked when i actually use it on my project thanks alot....