Skip to content

Panel Functions

Cycle

Loopy panel with Cycle button highlighted

Click to apply a 'Cycle' loop. These are loops that will repeat the animation from the beginning.

loopOut();

Note

This is the default loop type, so no parameter is needed in the loopIn() or loopOut() expression.

Ping Pong

Loopy panel with Offset button highlighted

Click to apply a 'Ping Pong' loop. These are loops that will run in reverse before repeating from the beginning.

loopOut("pingpong");

Offset

Loopy panel with Offset button highlighted

Click to apply an 'Offset' loop. These are loops that will increment in value each time they repeat.

loopOut("offset");

Continue

Loopy panel with Continue button highlighted

Click to apply a 'Continue' loop. These are loops that will continue the movement of the animation at the speed of the last keyframe.

loopOut("continue");

Time Remap

Loopy panel with Time Remap button highlighted

Alt/Option-click this button to apply time remapping to a layer without a loop expression. This is useful for when you've trimmed a layer and want to quickly create Time Remap keyframes at the In and Out points of the layer.

Change Loop Direction

Loopy panel with Time Remap button highlighted

Click to set the direction of the loop applied by the buttons above. Toggle between: Loop In; Loop Out; Loop In + Loop Out.

Keyframe Modifier

Loopy panel with Time Remap button highlighted

When set to a value greater than zero, a parameter is added to the loop expression to limit the loop to this number of keyframes before the last (or after the first, for a Loop In).

loopOut("cycle", 3);

For example, if this value were set to 3, and the property has 10 keyframes, when applying Loop Out, the animation will loop between the 7th and 10th keyframes.

Screenshot of keyframes in an After Effects timeline

If this value is set to zero, it is ignored and the keyframe modifier is not added to the expression.

Alt/Option-click to reset the value to zero.

Limit Keyframe Modifier

Loopy panel with Time Remap button highlighted

When active, the value set in the Keyframe Modifier field will be modified before being used in the loop expression. It will ensure that the value used is no greater than the highest valid value for a property.

For example, if the Keyframe Modifier value is 10, but the selected property only has five keyframes, this would cause an error. With this toggle active, the Keyframe Modifier value will be adjusted to 4 before being used in the expression.

loopOut("cycle", 4); // With 5 keyframes, this is valid

When inactive, the value set in the Keyframe Modifier field will be used as-is. In some versions of After Effects, this may result in an expression error if this value greater than the highest valid value on a property; in later versions, the animation will simply loop between the first and last keyframes. This might be desirable if you are applying loop expressions to properties that you will later add sufficient keyframes to.

loopOut("cycle", 10);
/* With 5 keyframes, this is invalid and will loop between
   all keyframes, or possibly throw an expression error */

Keep Expressions

Loopy panel with Time Remap button highlighted

When active, any existing expression on a property will be retained and commented out below the new loop expression.

When inactive, any existing expressions are removed before applying the loop expression.

loopOut("pingpong");

// == PREVIOUS EXPRESSION: ==
//
// value * 360

Information Panel

Loopy panel with Time Remap button highlighted

Click to open the Information panel. This panel contains:

  • Version details of the script
  • Link to support on the aescripts website
  • Instructions on how to use Loopy
  • Licence registration information
  • Option and button to check for script updates
  • Licence the script, or deactivate your licence
  • Reset the Loopy panel to the default state.