Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Simple but frustrating loop question

  • Simple but frustrating loop question

    Posted by Mike Cantor on February 1, 2014 at 7:45 pm

    Hi folks, I have watched a zillion tutorials on how to out a loopIn or loopOut expression on Time Remap to loop a clip but still can’t solve what seems like it should be a simple problem.

    In all these tutorials they loop a clip from beginning to end. In my case I have want to loop a certain segment of a larger clip, say from frame A to frame B, over and over.

    I put two Time Remap keyframes at A and B and the expression “loopIn(type = “cycle”, numKeyFrame = 2);” This doesn’t work. I’ve tried every combination of loopIn, loopOut, and numKeyframe and can’t get it to work . Can someone tell me what I’m missing?

    Thanks a bunch,
    -Mike

    loopIn(type = "cycle", numKeyFrame = 2)

    Mike Cantor replied 12 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 1, 2014 at 8:26 pm

    I’m not sure exactly how you have things set up, but this example might help. If you set the two keyframes you want, then delete the two keyframes that AE created when you turned on time remapping, something like this should loop the section you want:

    if (time < (key(1).time + key(2).time)/2)
    loopIn()
    else
    loopOut()

    Dan

  • Mike Cantor

    February 1, 2014 at 9:12 pm

    Thanks Dan! After writing the post I found a plug-in that writes the expression for you as well as gives you some other options:

    https://aescripts.com/the-loopmaker/

    -mike

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