Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to loop a time* expression?

  • How to loop a time* expression?

    Posted by Noel Powell on October 23, 2015 at 2:25 pm

    Hi,

    I’m trying to use a time*value expression on the evolution of a Fractal Noise effect, to make the evolution continually change. The problem is the evolution property only goes so high (90 revolutions, I believe) before it stops. I would like to loop it so that once the evolution reaches its limit, it starts over again. I can not use a loopOut expression with keyframes because I need the speed of the evolution to be controlled by a slider control. I though maybe a while statement would do it – but I never quite grasped that one. Any help you can offer is much appreciated! Thanks!

    After Effects Templates – digital glitch effects, 80s VHS effects, old film effects, art effects, and more: https://CreationEffects.com

    Kalleheikki Kannisto replied 10 years, 6 months ago 2 Members · 6 Replies
  • 6 Replies
  • Kalleheikki Kannisto

    October 24, 2015 at 7:51 pm

    You can use modulo (%) expression with the loop end time as the divisor.

  • Noel Powell

    October 25, 2015 at 12:50 am

    [Kalle Kannisto] “You can use modulo (%) expression with the loop end time as the divisor.”

    Thanks Kalle,
    I understand what the modulus operator does, but I’m failing to understand how you’re suggesting I use it. Could you give an example? I appreciate your time.

    After Effects Templates – digital glitch effects, 80s VHS effects, old film effects, art effects, and more: https://CreationEffects.com

  • Kalleheikki Kannisto

    October 25, 2015 at 4:43 pm

    Let’s say the value at which you want the footage to loop is 1234 (arbitrary number here, actual number depends on you comp and where the seamless loop point is in your comp).

    So if you use the expression

    time*100 % 1234

    the time*100 value will cycle from 0 to 1234.

  • Kalleheikki Kannisto

    October 25, 2015 at 4:54 pm

    … however, looking at your original question again, I suspect a misunderstanding with the fractal noise settings: the “Cycle in revolutions” simply means how many full revolutions (on the Evolution setting) it takes before the noise cycles, it doesn’t mean you can only cycle only that many times. You can keep going endlessly on the evolution/cycling itself, but that control tells you when it will cycle (= every X full revolutions, the “X” being controlled by that number that you can set to 0-88.)

  • Noel Powell

    October 25, 2015 at 5:18 pm

    Perfect! That expression does exactly what I needed.

    What I meant earlier is that I could increase the Evolution setting past 90 revolutions, but once it reaches 90 revolutions, the noise stops “evolving”. I just needed it to continue evolving infinitely, and it didn’t matter if the shape of the noise cycled seamlessly. Your expression did the trick. Thank you.

    After Effects Templates – digital glitch effects, 80s VHS effects, old film effects, art effects, and more: https://CreationEffects.com

  • Kalleheikki Kannisto

    October 25, 2015 at 6:41 pm

    “once it reaches 90 revolutions, the noise stops evolving”

    I’ll be damned, so it does. That looks like a bug. It doesn’t evolve even with cycle revolutions.

    Well, then there is a need for this workaround.

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