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 In and Out?

  • How to Loop In and Out?

    Posted by Mark Walczak on April 18, 2013 at 2:52 pm

    Hi everyone,

    I have two linear keyframes within a Time Remap that allow me to recreate a timewarp that I was given from an Avid clip. I’m quite accustomed to using loopOut(“Continue”), as well as the respective loopIn equivalent, but is there a way to ‘stack’ the two, so I can continue the defined rate both before and after the set of keyframes that I have established?

    In my limited knowledge of expressions, I would imagine that it would look something like this, but it doesn’t work:


    Thank you so much in advance for your help!

    Roei Tzoref replied 5 years, 3 months ago 3 Members · 3 Replies
  • 3 Replies
  • Kevin Camp

    April 18, 2013 at 9:17 pm

    you need to set conditions to loopIn when time is before the first key, use the value when between the keys and loopOut after the last key…

    this should do it:
    if (time >= key(1).time){
    if (time > key(2).time) loopOut('continue') else value;
    if (time < key(1).time) loopIn('continue');

    Kevin Camp
    Senior Designer

  • Mark Walczak

    June 5, 2013 at 2:29 pm

    Kevin, I’m so sorry that it took me this long to reply, but your solution was absolutely perfect.

    Thank you so much!

  • Roei Tzoref

    November 8, 2018 at 11:00 pm

    also this:

    Roei Tzoref
    2D/VFX Generalist & Instructor
    ♫ AeBlues Tutorials ♫

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