Last active
July 8, 2020 07:52
-
-
Save AEnMe/51100a32d27953e1df7cdd3f11458fe7 to your computer and use it in GitHub Desktop.
Animation redo every marker
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
n = 0; | |
if (marker.numKeys > 0) { | |
n = marker.nearestKey(time).index; | |
if (marker.key(n).time > time) { | |
n--; | |
} | |
} | |
if (n == 0) { | |
value; | |
} else { | |
t = time - marker.key(n).time + key(1).time; | |
valueAtTime(t); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment