After Effects Expression Basics — Wiggle

wiggle(5, 50)
[wiggle(5, 150)[0], value[1]]

Try the wiggle expression on other layers properties.

Wiggle is of course not just limited to the position property, experiment by applying the wiggle expression to things like scale and rotation as well. One common use for the wiggle expression is to simulate a shaking camera by
Pre-composing a scene, wiggling the values on that entire composition, and scaling it up to hide any gaps on the edges of the frame.

More Advanced Wiggle Expressions

I only showed expressions with two arguments for the beginner section of the tutorial, as most of the time that is all you’ll need, however the full syntax of the wiggle expression is as follows:

wiggle(freq, amp, octaves=1, amp_mult=0.5, t=time)
freq value is the frequency in wiggles per second.amp value is the amplitude in units of the property to which it is applied.octaves is the number of octaves of noise to add together. This value controls how much detail is in the wiggle. Make this value higher than the default of 1 to include higher frequencies or lower to include amplitude harmonics in the wiggle.amp_mult is the amount that amp is multiplied by for each octave. This value controls how fast the harmonics drop off. The default is 0.5; make it closer to 1 to have the harmonics added at the same amplitude as the base frequency, or closer to 0 to add in less detail.t is the base start time. This value defaults to the current time. Use this parameter if you want the output to be a wiggle of the property value sampled at a different time.

Further reading on expressions:



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arthur Wilton

Arthur Wilton


Software Developer and Video/Post Production Professional. Recent graduate of Flatiron School.