ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

link z position to xy to camera

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Itay Assouline
link z position to xy to camera
on Jul 27, 2020 at 6:26:35 pm

Hi! ☺
I want to move a layer in the 3D space but keep it in the same size and xy position as it was in 2d (or in the original, before I moved it in z axis).
i found a solution for the problem for scale:

zoom=thisComp.layer("Camera 1").cameraOption.zoom;

and looking for an expression for the position.

Return to posts index

Filip Vandueren
Re: link z position to xy to camera
on Jul 28, 2020 at 9:17:07 pm
Last Edited By Filip Vandueren on Jul 28, 2020 at 9:19:21 pm

The easiest way I know is without expressions:

parent the layer to the camera,
then position it at
0,0,-zoom position, (copy paste the z-value from your camera Options)

scale should then just be 100% and rotations at 0 and it will look exactly as if you just did a perfect “ fit to comp” on a 2D layer.

then unparent from the camera.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 All Rights Reserved