Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Object A scales on Y-axis when Object B is nearby…How?

  • Dan Ebberts

    June 9, 2011 at 10:27 pm

    Something like this:

    L = thisComp.layer(“B”);
    minScale = 100;
    maxScale = 150;
    maxD = 80;
    d = length(toWorld(anchorPoint),L.toWorld(L.anchorPoint));
    ease(d,0,maxD,[value[0],maxScale],[value[0],minScale])

    Dan

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