Motion
Get Motion

ReferenceScripting APIMotionEffectanimate

MotionEffect.animate

method

Moves one of its number or colour settings over seconds.

Nameanimate
Kindmethod of MotionEffect
Called aseffect.animate(…)
As a nodeSet Effect Setting (logic graph)
Since0.4

Syntax

animate(    key: string,    value: string | number,    seconds: number,    options?: MotionAnimateOptions): Promise<boolean>

Parameters

NameTypeDescription
keystringIts setting's key
valuestring | numberWhere it ends up
secondsnumberHow long the move takes
optionsMotionAnimateOptionsOptional. Its easing, delay and loop

Returns

Promise<boolean>: a promise of true when it gets there, false when it's stopped.

See also

MotionAnimateOptions