08 · Expressions
Expressions: Time, Wiggle, Loop
Expressions are tiny bits of code on a property. Three of them cover most micro motion.
This section enables you to
- Add an expression to a property
- Move layers without keyframes
- Loop keyframes forever
Time
time is the current time in seconds. Multiply it and the value keeps growing.
-
01
Open the expression
Alt-click the stopwatch of a property, for example Rotation.
-
02
Type it
The layer turns 90° per second. Change the number to change the speed.
time*90
Wiggle
wiggle shakes a value randomly.
-
01
Type it
On Position: 2 is how often per second, 50 is how far in pixels.
wiggle(2, 50)
Loop
loopOut repeats your keyframes after the last one.
-
01
Set the keyframes
Animate the property once, for example a short pulse on Scale.
-
02
Type it
Alt-click the stopwatch and add the loop.
loopOut("cycle")
Exercise
Three shapes, three expressions
Expected result
Shortcuts
| Action | Mac |
|---|---|
| Add expression | ⌥-click stopwatch |
More info
- Expression basics – Adobe After Effects Help
- Expression examples – Adobe After Effects Help
- Expressions – dasnorm.ch