Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Way to offset scale with 3D position?

  • Way to offset scale with 3D position?

    Posted by David Lackey on March 29, 2012 at 3:05 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.

    Roland R. kahlenberg replied 14 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Roland R. kahlenberg

    March 29, 2012 at 3:27 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.

    HTH
    RoRK

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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy