Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Looping an Expression in AE

  • Looping an Expression in AE

    Posted by Samuel Saturos on April 13, 2011 at 4:07 pm

    Hello Forum,

    I would like to know how do I loop an expression in After Effects.

    The expression attached generates a wave like a heart beat monitor and I would like to keep repeating this wave being able to choose the interval between the repetitions. Is it possible?

    Thank you!

    veloc = 10;
    amplitude = 100;
    decay = 2;
    x = 1*timeToFrames(time);
    y = amplitude*Math.cos(veloc*time)/Math.exp(decay*time);
    value + [x,y]

    Samuel Saturos replied 15 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 13, 2011 at 5:35 pm

    This should be close:

    interval = 2;
    veloc = 10;
    amplitude = 100;
    decay = 2;
    t = (time – inPoint)%interval;
    x = 1*timeToFrames(time);
    y = amplitude*Math.cos(veloc*t)/Math.exp(decay*t);
    value + [x,y]

    Dan

  • Samuel Saturos

    April 14, 2011 at 8:34 am

    Oh! That’s it! It’s working. Thank you very much Dan.

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