Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions expression help – scale based on proximity

  • expression help – scale based on proximity

  • Colin James

    April 18, 2005 at 6:54 pm

    Hey guys, I’ve got a rather simple expression i need written that’s giving me a hell of a time :p I

    I basically have 11 text objects on screen. I need them to scale up individually based on the proximity of another layer ( a layer that is a small image of an arrow mouse curosor )…i need it to be fluid like the mac os x dock scale/genie effect.

    does anyone have any suggestions?

    thanks 🙂

  • Colin James

    April 18, 2005 at 7:04 pm

    Hey all, it always happens that all i need to do is post to the cow, and 5 minutes later I’ll figure it out 😉

    Thanks to this site: https://www.jjgifford.com/expressions/geometry/length.html

    I found this script:

    // Point1 is current layer, point2 is control layer
    point1=this_layer.position;
    point2=thisComp.layer(“ARROW”).position

    // Find the vector between the 2 points
    delta=sub(point1, point2);

    // Now find the length
    distance=length(delta);

    //Use linear() to remap distance to range of 40 to 0
    linear(distance, 0, 80, [250,250], [75,75]);

Viewing 1 - 2 of 2 posts

Log in to reply.

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