https://futureisyours.adobe.com/en/blog/after-effects-wiggle.html
In your after effects file, select the layer that you want to shake. Pressing the alt/option key, click the stopwatch beside “position.” We're gonna be actually typing to alter the position, not just editing the position a million times. This will save tons of time and make your effect more uniform.

When you see the position text turn red and begin typing in the timeline, you are creating what is called an “expression” in After Effects. Using a coding language adapted from javascript, you can use all sorts of customizable commands to apply complex motion to layers. You can edit your expression at any time by hitting alt/option on the stopwatch again—or by pressing the down arrow beside “position” and then double-clicking the text in the timeline.
Type “Wiggle (3,8)” and adjust the settings as necessary.

The first number in this expression represents the speed of the wiggle. The second number represents the amplitude of the wiggle, which is how far it moves. You can adjust these numbers however you like. Editing these numbers will help change the look and feel of the effect. For example, Wiggle (2,40) will make a layer shake hard, but slow. Wiggle (10,3) will make a layer dart around quickly without moving too much in any one direction.
Another option for further manipulating this effect is to adjust the frame rate of your composition.

If you want more of a jerky wiggle instead of a smooth one, you can reduce the frame rate of the video to make the overall effect choppier. Go to Composition > Composition settings and lower the frame rate. Something like 12 will give you a choppier feel, but you can go as low as 8.
Note that if you change the frame rate of the composition, it will make EVERYTHING choppier. It likely won't make sense to apply it to everything. You can fix this problem by putting only the wiggly objects in a pre-comp and then editing the frame rate of the pre-comp instead of the main composition.
Back to Top