Page 1 of 1
Convert 3D null position points to 2D, with an expression?
Posted: April 28th, 2008, 9:57 am
by drscarybeard
I have a .ma file with a Maya camera and a bunch of nulls. I have imported this into After Effects.
I want to turn the 3D position points of the nulls relative to the camera into 2D position points based on the Comp window position.
Is there a way to do this with an expression?
Thanks
Re: Convert 3D null position points to 2D, with an expression?
Posted: April 28th, 2008, 10:08 am
by Dan Ebberts
I general, it would look like this:
L = thisComp.layer("Null 1");
L.toComp(L.anchorPoint)
Dan
Re: Convert 3D null position points to 2D, with an expression?
Posted: August 25th, 2008, 9:20 am
by jayse
Could anyone clarify this one? I'd love to use a 3d null from c4d that I set up as 'the sun'
Use that to drive the positional values of a 2 dimensional item such as the position of Knoll Lens Flare.
I tried putting this on a new null and targeting the 3d null (thisComp.layer("sun"));
But it errors out. Must be more to it.
~ noob
// jayse
Re: Convert 3D null position points to 2D, with an expression?
Posted: August 25th, 2008, 9:26 am
by Dan Ebberts
You would apply the expression to the effect point (assuming the effect is applied to a comp-sized 2D layer).
Dan
Re: Convert 3D null position points to 2D, with an expression?
Posted: August 25th, 2008, 12:17 pm
by jayse
That's awesome Dan - thanks so much - this will become one of my most used expressions!