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.
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:
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.