ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

Way to offset scale with 3D position?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David LackeyWay to offset scale with 3D position?
by on Mar 29, 2012 at 3:05:08 pm

In a 3D comp with a camera with a particular focal length, is there a good expression or shortcut for telling After Effects to offset a scale operation by shifting the X, Y, and Z position of the layer so that it's apparent scale and position stay the same?

I'm turning a few 2D comps into 3D and would like to retain the composition of the shots.

Return to posts index

Roland R. KahlenbergRe: Way to offset scale with 3D position?
by on Mar 29, 2012 at 3:27:28 pm

Use the following Expression for a layer's scale property -

cam = thisComp.activeCamera;
distance = length(sub(position, cam.position));
scale * distance / cam.zoom;

BTW, I believe that this example was taken from the Adobe site but its link seems to be broken.


Intensive AE & Mocha Training in Singapore and Malaysia
Adobe ACE/ACI (version 7) & Imagineer Systems Inc Approved Mocha Trainer

Return to posts index

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