Skip to content

Instantly share code, notes, and snippets.

@steveostudios
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveostudios/f666d0a12b86b0208002 to your computer and use it in GitHub Desktop.
Save steveostudios/f666d0a12b86b0208002 to your computer and use it in GitHub Desktop.
After Effect Expression for swinging objects.
/*
* Swinging Text
* apply on parameters that you want to swing (i.e. x-rotation)
* credit: Dan Ebberts
*/
veloc = 7;
amplitude = 90
decay = .7;
t = time - inPoint;
amplitude*Math.cos(veloc*t)/Math.exp(decay*t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment