Convert 3D null position points to 2D, with an expression?

Moderators: Disciple, zlovatt

Post Reply
drscarybeard
Posts: 1
Joined: April 28th, 2008, 9:36 am

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
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

I general, it would look like this:

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


Dan
jayse
Posts: 12
Joined: November 22nd, 2004, 5:45 pm
Location: vegas
Contact:

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
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

You would apply the expression to the effect point (assuming the effect is applied to a comp-sized 2D layer).

Dan
jayse
Posts: 12
Joined: November 22nd, 2004, 5:45 pm
Location: vegas
Contact:

That's awesome Dan - thanks so much - this will become one of my most used expressions!
Post Reply