Skip to content

Instantly share code, notes, and snippets.

@AEnMe
Created July 14, 2020 10:14
Show Gist options
  • Save AEnMe/74848b06138293f1f80a2cd8f31ae519 to your computer and use it in GitHub Desktop.
Save AEnMe/74848b06138293f1f80a2cd8f31ae519 to your computer and use it in GitHub Desktop.
Makes a compostion loop based on its duration
t = -inPoint + time; //to start at 0
d = comp(name).duration;
n = Math.round( t % d*100 )/100; //get rid of the floating
( n == d ) ? 0 : n;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment