Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linking Velocity to Slider

  • Linking Velocity to Slider

    Posted by Alex Ross on July 17, 2019 at 4:06 am

    Hi, I was using this tutorial to make a squash and stretch effect, I wanted to try and link the velocity of the moving layer to the scale width.

    I think I have everything right, and the numbers shown look around where they should be, but the expression has stopped any scaling effect that I had applied. Now it wont register the scale effect at all.

    Any help would be great.

    velocity = thisLayer.transform.position.velocity;
    angleInRadians = Math.atan2(velocity[1], velocity[0]);
    angleInDegrees = 180 * angleInRadians / Math.PI +100;

    This is the effect I have on a Slider controlling my scale width.

    Andrei Popa replied 7 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Andrei Popa

    July 17, 2019 at 10:49 am

    If you want to also consider the actual value of the property, you must add it. So the last line should be “value + ” whatever you have there.

    Andrei
    My Envato portfolio.

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