Alex Kessling - Motion Wiki
  • Hello
  • ⚒️After Effects
    • ⌨️Ae-Expressions
      • ™️Branding
      • 📂Dumping Ground
      • 🏞️Secondary Animation
      • ⚖️Numbers
      • 🖨️Display Value
      • 🌈Color
      • 🐛Debugging
      • 🦸‍♀️Useful
  • 📚Learning-Motion Design
    • 🪶Tutorial Sites
  • Projects
Powered by GitBook
On this page
  1. After Effects
  2. Ae-Expressions

Secondary Animation

Give your animation more life with ease

PreviousDumping GroundNextNumbers

Last updated 2 years ago

-Wiggle [FULL CONTROL]

// Wiggle expression for a shape layer 
ampX = 50; // amplitude for x-axis movement
freqX = 2; // frequency for x-axis movement
ampY = 50; // amplitude for y-axis movement
freqY = 4; // frequency for y-axis movement
seed = 0; // seed value for the wiggle

wiggleX = ampX * Math.sin(freqX * time + seed); // wiggle amount for x-axis
wiggleY = ampY * Math.sin(freqY * time + seed); // wiggle amount for y-axis

[value[0] + wiggleX, value[1] + wiggleY] 
To use the expression with controls, create four slider controls 
in the Effects panel named "Amplitude X", "Frequency X", "Amplitude Y", 
and "Frequency Y", and link them respectively to the ampX, freqX, ampY, 
and freqY variables in the expression. 
Set the value for the "Seed" variable to a different number for each 
shape layer in your composition to get a 
unique wiggle pattern for each one.
⚒️
⌨️
🏞️
Wavey-WigglePayhip
Download Preset here
Logo