Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

EXPRESSIONS THAT WE USE IN THIS CLASS

Dynamic damping (bounce expression):

amp = .025; //rebound amplitude


freq = 2; //rebound frequency
decay = 3; //damping strength
n = 0;
if (numKeys > 0) {
n = nearestKey(time).index;
if (key(n).time > time) {
n--;
}
}
if (n == 0) {
t = 0;
} else {
t = time - key(n).time;
}
 
if (n > 0 && t < 1) {
v = velocityAtTime(key(n).time - thisComp.frameDuration / 10);
value + v * amp * Math.sin(freq * t * 2 * Math.PI) / Math.exp(decay * t);
} else {
value;
}

Wiggle expression:

Wiggle(2,4)

With a wiggle, we’re instructing the property, whether the Scale, Opacity, Rotation, or Position, to
wiggle within the set parameters:

First parameter - frequency of the movement;


Second parameter - amplitude of the movement.

LoopOut expression:

LoopOut()

This expression works by taking all of the keyframes in your currently selected layer and creating
an automatic loop. 

You might also like