Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Control speed with expressions (slow down/speed up)

  • Control speed with expressions (slow down/speed up)

    Posted by Ryan Jones on December 5, 2017 at 2:57 pm

    Basically, X will be going the rate of time. The slider keyframes will control speed or ramp up and ramp down.

    [the slider] has two keyframes; 100 and 1.

    the position of the solid is this:
    x=(time * 100)
    y=transform.position[1];
    p=effect("Slider Control")("Slider");
    [x/p,y]

    There is a nice ease in but then it jumps the second it hits keyframe 1 on the slider. What is a good expression to control the speed of a constantly moving object? Does that make sense?

    The animation is a large plane moving at the speed of time and I’d like to control the start and stop, as this large plane will loop in a cycle. Hence the reason for controlling “speed.” It doesn’t have to stop, but pretty close.

    Ryan Jones replied 8 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Andrei Popa

    December 6, 2017 at 9:17 am

    This happens because while time grows slider lowers. And both this increase the speed. So you get an exponential graph with a very steep growth towards the end. I think the solution would be just to lower your slider. Set its value to 4-5 instead of 100.
    Graph with max slider at 100.

    Graph with 4 instead of 100.

    Andrei
    My Envato portfolio.

  • Ryan Jones

    December 7, 2017 at 8:48 pm

    Interesting. What about stopping? I noticed the object races back to the original X value.

    Think of this as a side-scrolling game where the background is moving right to left and your character is centered. The background is looping too, so it’s basically sawtoothing or repeating every so many frames. Eventually, I’d like to slow down the background to a stop wherever the x value of the background is. I hope that makes sense. 🙂

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