Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Controlling the looping speed of loopOut(“cycle”)

  • Controlling the looping speed of loopOut(“cycle”)

    Posted by Chakra Veerakul on November 5, 2011 at 11:48 pm

    Hi :), I currently have loopOut(“cycle”) script assigned to a the X position of a layer. The X position is animated with 2 keyframes. The first keyframe looks exactly like the last keyframe, so that when it loops, the graphics will move seamlessly over and over.

    At some point in my animation, I would like to increase the speed of the looping element (preferably, ramping up). Here is what I have tried so far:

    1. In the X position, if I add this line:

    loopOut(“cycle”);
    time*rate // and I plan to assign ‘rate’ to a slider

    This would cause the seamless looping element to mess up. I think it interferes with the loopOut script somehow.

    2. I have tried time warping (as time remapping could not create a ramp up effect), but the problem is it becomes buggy when assigned to a 3D layer and viewed through a camera.

    3. I searched through the threads, you guys mentioned that it is hard to create expressions for the ramp change in time. However, the thread was years ago and I wonder if we can achieve this now.

    Chakra Veerakul replied 14 years, 7 months ago 2 Members · 3 Replies
  • 3 Replies
  • Chakra Veerakul

    November 6, 2011 at 9:45 pm

    I currently fixed this by animating keyframes manually. Instead of using loop out, I duplicated the layer many times and placed them next to each other. I changed the specific layer’s speed, and adjust its curve to ramp up into the other layer’s speed. It works great right now.

  • Dan Ebberts

    November 7, 2011 at 1:22 am

    Yes, loopOut() doesn’t really lend itself to speed control. It is possible though, to create your own expression version of loopOut()so that you can mess with the total elapsed time calculation to control the speed. You can couple this to a “speed control” slider (which you have to integrate from the layer’s In Point to the current time) if you can live with linear keyframes for the speed. It’s possible, but pretty complicated, and it sounds like you cracked it a different way.

    Dan

  • Chakra Veerakul

    November 7, 2011 at 4:31 pm

    Thanks Dan 🙂

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