Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions automated animation with variable speeds

  • automated animation with variable speeds

    Posted by Tiffany Menke on April 24, 2017 at 1:55 pm

    I can handle fairly basic expressions for overshoot and wiggles, but right now I’m way out of my depth. For display testing purposes, I need to create an animation of a ping-ponging (left-right-left) shape. I have the pixel locations of the right and left stopping points. I need the speed of the animation between these points controllable by an expression. For example, I need the shape to complete the animation cycle at a rate of 3 pixels per frame and 1/2 pixel per frame. I know how to find the speed with position.speed, but what I need is kind of the opposite and I really don’t know how to get the ping pong action into play. If I could manage to create a hold at each direction change, it would be ideal. Maybe I’m over-complicating it and it would be best to animate the shape moving-holds and all- and then just re-time that precomp for each speed I need? Does any of that even make sense to the gurus? Thank you in advance.

    Steve Sierra replied 9 years ago 2 Members · 1 Reply
  • 1 Reply
  • Steve Sierra

    April 24, 2017 at 4:37 pm

    Hi,

    I’m not sure this is what you’re after, but here it goes :

    -Create a slider control on your shape layer.
    -keyframe your ping-pong-ping with a pause if you want between 0 and 1 seconds (doesn’t really matter, it can be 0 and 2)
    -put this expression in your shape’s position property :

    valueAtTime(time*effect(“Slider Control”)(“Slider”)/100);

    Now, you control the speed of your animation with your slider !
    I got this from DUIK’s morpher, just made a few changes.

    Cheers !

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