// Wiggle expression for a shape layer ampX =50; // amplitude for x-axis movementfreqX =2; // frequency for x-axis movementampY =50; // amplitude for y-axis movementfreqY =4; // frequency for y-axis movementseed =0; // seed value for the wigglewiggleX = ampX *Math.sin(freqX * time + seed); // wiggle amount for x-axiswiggleY = 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.