Skip to content

Instantly share code, notes, and snippets.

@Volorf
Created September 23, 2019 11:15
Show Gist options
  • Save Volorf/06a72f907a9921df1d97a4d83d1cff91 to your computer and use it in GitHub Desktop.
Save Volorf/06a72f907a9921df1d97a4d83d1cff91 to your computer and use it in GitHub Desktop.
Looping wiggle() for After Effects
// Source — https://www.motionscript.com/design-guide/looping-wiggle.html
freq = 1;
amp = 100;
loopTime = 3; // Set loop time for 3 sec.
t = time % loopTime;
wiggle1 = wiggle(freq, amp, 1, 0.5, t);
wiggle2 = wiggle(freq, amp, 1, 0.5, t - loopTime);
linear(t, 0, loopTime, wiggle1, wiggle2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment