Skip to content

Instantly share code, notes, and snippets.

@Arslan-TR
Last active February 2, 2021 08:42
Show Gist options
  • Save Arslan-TR/4d898f37543db64dc1d4d46ce5a23827 to your computer and use it in GitHub Desktop.
Save Arslan-TR/4d898f37543db64dc1d4d46ce5a23827 to your computer and use it in GitHub Desktop.
Spin expression after effects (rotate at a constant speed without keyframes)
// Spin (rotate at a constant speed without keyframes):
veloc = 360; //speed (degrees per second) u can adjut the velocity value!
r = rotation + (time - inPoint) *veloc;
[r];
// Throw (move at a constant speed without keyframes):
veloc = -20; //speed (pixels per second), change -20 to 20 to invert right/Left direction!
x = position[0] + (time - inPoint) *veloc;
y = position[1];
[x,y]; //change x,y to y,x to change direction up or down!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment