Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects how do i make an animation loop for a certain duration

  • how do i make an animation loop for a certain duration

    Posted by Jahari Coriano on May 15, 2020 at 12:48 am

    I made a walk cycle animation and I only want it to loop for a certain duration so i can then animate the character differently. I used the expression, “loopOutDuration(type = “cycle”, duration = 0)”, but when I change the duration besides 0 the animation will just freeze up.

    I an animator. Well a starter animator but, I am getting better and better each day. Hopefully I can post my animations on youtube one day. I will be posting some things about after affects if I have a problem with it.

    Darby Edelen replied 5 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Darby Edelen

    May 16, 2020 at 6:33 pm

    This isn’t as straight forward as you might like it to be. The loopIn() and loopOut() expressions are really intended to take over all of the animation before the first keyframe (loopIn) or after the last keyframe (loopOut). If you only need to be able to create your own keyframe animation after the looping portion then you can use loopIn (not loopInDuration) and specify the number of keyframes after the first that should be included in the loop, for example:

    loopIn("cycle", 3);

    This would include the first through fourth keyframe in the loop, your non-looping animation would start after the fourth and continue for the remainder of the timeline.

    Otherwise your simplest option for transitioning from a looping to non-looping animation might be to split the layer. Leave the original to loop and remove the loop from the duplicate. Lining up the state of the loop and non-loop might be challenging. You could use a linear() expression to transition from the loopOut version to the non-looping version but that’d be a bit more complex.

    Darby Edelen

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