Created
July 14, 2020 10:14
-
-
Save AEnMe/74848b06138293f1f80a2cd8f31ae519 to your computer and use it in GitHub Desktop.
Makes a compostion loop based on its duration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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