Loops

After Effects Loop Expression

The loop functions allows animations to repeat with a minimum number of key frames. Saving time and effort for edits in the future. There are 3 different loops. loopIn ( ) , loopOut ( ), & loopDuration( ). It has 4 different arguments cycle , pingpong, offset and continue.

loopout ( )

The loopout function, works by taking the last key frame and then jumping back to the start of the loop, the first key frame. It will not start before the first key frame.

loopIn ( )

The loopIn function, works by taking the first key frame and then jumping back to the time before the loop starts. It will not work past the last key frame.

4 Loop (“Argument Type” )

1. “Cycle”

This is your standard default loop. After the last keyframe AE will then put in the first keyframe and the loop will start over again. It is also the default type loop, if no argument is typed inside the ( ).

In the example above the loopOut”cycle” expression is used for rigging the worm.

2. “Pingpong”

The Pingpong starts at the original keyframe to the last keyframe. Then it jumps back to the original keyframe value.

In the example above, the Expression Graph Editor shows the curves continuum with a dotted red line.

3. “Continue”

This loop uses the last key frame property and continues its velocity to the end of the timeline. It does not go back to the start of animations like other loops.

In the example above the Expression Graph Editor shows the change in velocity, dependent on the curve.

4. “Offset”

This repeats the loop but offsets the value, multiplied by each time its repeated.

In the example above, notice the X position property grows larger the number of times it repeats the loop.

loopOutDuration (type = _____ , duration );

The loop starts from the first key frame to the last one. Then the value you put in for the duration argument will set-up the range for the new loop. In the example above the duration is at 1 second. Therefore the new loop after it plays 0 to 2 sec. Then it starts at 1 sec. up to 2 sec. and back to 1sec up to 2 sec. and so on …