MANUAL / SCRIPTING & EXPRESSIONS

Interpolation (expressions)

linear(), ease(), easeIn(), easeOut() and clamp() — map one range of values to another.

Functions

FunctionWhat it does
linear(t, tMin, tMax, value1, value2)Maps t from tMin…tMax to value1…value2 in a straight line. Outside the range it holds the end value.
linear(t, value1, value2)Same, with t running 0…1.
ease(…)Same arguments; eases in and out.
easeIn(…)Same arguments; eases in.
easeOut(…)Same arguments; eases out.
clamp(value, min, max)Keeps value between min and max. Works per item on arrays.

value1 and value2 can be numbers or arrays.

Examples

// fade in over the first second
linear(time, 0, 1, 0, 100)

// move from left to right between 1 s and 3 s, eased
ease(time, 1, 3, [100, 540], [1820, 540])

// keep a slider in range
clamp(effect("Slider Control")("Slider"), 0, 100)