ReferenceScripting APIMotionLayereffect
MotionLayer.effect
methodOne of this layer's effects, by its number in the stack or its name (or its kind).
| Name | effect |
|---|---|
| Kind | method of MotionLayer |
| Called as | scene.layer(…).effect(…) |
| As a node | Set Effect Setting (logic graph) |
| Since | 0.4 |
Syntax
effect(which: string | number): MotionEffectParameters
| Name | Type | Description |
|---|---|---|
which | string | number | Its 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
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.