PDA

View Full Version : Q: Parenting 2d layer to 3d layer/null


ssalo
12-12-2007, 12:24 PM
Hello!

Does anybody know any tips how to parent a 2d layer to 3d layer(or null)?

I want have 3d null to travel freely in 3d space and 2d layer to follow it but only in X and Y dimensions.

Did that make any sense? A bit like orienting to camera but so that it always stays "straight".

-Sami

Mylenium
12-12-2007, 03:27 PM
Hello!

Does anybody know any tips how to parent a 2d layer to 3d layer(or null)?

I want have 3d null to travel freely in 3d space and 2d layer to follow it but only in X and Y dimensions.

Did that make any sense? A bit like orienting to camera but so that it always stays "straight".

-Sami

m3D=thisComp.layer("3D Null");
m2D=m3D.toComp(anchorPoint);

[m2D[0],m2D[1]]

Apply expression to the position of the 2D layer.

Mylenium

ssalo
12-12-2007, 04:18 PM
Thank you very much! I owe you a beer!

Best regards,
Sami

CGTalk Moderation
12-12-2007, 04:18 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.