View all expressions
Randomness

Wiggle Based on Speed

Adds more wiggle the faster the layer moves by linking wiggle amplitude to position speed in real time.

Contributed by:


sensitivity = 50;
// Lower = more reactive. You can connect this to a Slider Control
maxAmount = 20;
// Maximum wiggle intensity. Also connectable to a slider
speedValue = transform.position.speed;
amt = clamp(speedValue / sensitivity, 0, maxAmount);
wiggle(10, amt);

Wiggle Based on Speed

Practical use case

Ideal for dynamic particles, trailing effects, or elements that should “shake” only when in motion.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image