Motion
Get Motion

ReferenceScripting APIMotionLayereffect

MotionLayer.effect

method

One of this layer's effects, by its number in the stack or its name (or its kind).

Nameeffect
Kindmethod of MotionLayer
Called asscene.layer(…).effect(…)
As a nodeSet Effect Setting (logic graph)
Since0.4

Syntax

effect(which: string | number): MotionEffect

Parameters

NameTypeDescription
whichstring | numberIts number (0 the first), name or kind

Returns

MotionEffect: the effect, to set, move, turn on and off; one that isn't there does nothing.

Remarks

An effect that isn't there gives one whose index is -1, which does nothing; the console says so once.

See also

MotionEffect