Skip to content

Instantly share code, notes, and snippets.

@animoplex
Created September 4, 2018 01:57
Show Gist options
  • Save animoplex/5c1b08ef500ef5491ea94dc9b8d0663d to your computer and use it in GitHub Desktop.
Save animoplex/5c1b08ef500ef5491ea94dc9b8d0663d to your computer and use it in GitHub Desktop.
Loop Expression - After Effects Expression by Animoplex
// Loop Expression - Created by Animoplex: www.animoplex.com
// Basic loop expressions for use on a property in After Effects.
// Full Tutorial: https://www.youtube.com/watch?v=XRrs9pvWGuY
// Loop Examples
loopOut("cycle", 0) // Repeat from start to finish. Default loop mode.
loopOut("pingpong", 2) // Loops last three keyframes back and forth.
loopOut("offset", 0) // Repeats animation using last keyframe as new start point.
loopOut("continue") // Does not loop, but continues onwards with current velocity.
// Loop In Formatting Example
loopIn("cycle")
// Loop Out Formatting Example
loopOut("pingpong")
// loopInDuration / loopOutDuration Examples:
loopInDuration("cycle", 1) // Cycles the first second before the first keyframe.
loopOutDuration("cycle", 1) // Cycles the first second after the last keyframe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment