Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to change scale by distance from camera

  • Randy Mcwilson

    February 25, 2007 at 12:37 am

    Just found a way

    d = toWorld(anchorPoint) – thisComp.activeCamera.toWorld([0,0,0]);
    distance=length(d);
    linear(distance, 0, MaxDist, [maxScale,maxScale,maxScale], [0,0,0]);

    Where MaxDist=distance in pixels to begin scaling

    maxScale=largest percentage to scale item

    works great

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