Creative Communities of the World Forums

The peer to peer support community for media production professionals.

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

  • expression help – scale based on proximity

    Posted by Colin James on 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 replied 18 years, 12 months ago 1 Member · 1 Reply
  • 1 Reply
  • 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:

    I found this script:

    // Point1 is current layer, point2 is control layer

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

    // Now find the length

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

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