ReferenceScripting APIMotionLayerset
MotionLayer.set
methodChanges one of this layer's settings at once.
| Name | set |
|---|---|
| Kind | method of MotionLayer |
| Called as | scene.layer(…).set(…) |
| As a node | Set Layer Setting (logic graph) |
| Since | 0.3 |
Syntax
set( setting: string, value: SettingValue): voidParameters
| Name | Type | Description |
|---|---|---|
setting | string | A setting's key, such as "opacity" or "colour1" |
value | SettingValue | A number, a colour ("#rrggbb"), words or true/false |
Returns
Nothing.
Remarks
A layer that isn't there does nothing, and the console says so once.
See also
SettingValue · In examples: Constellations, Kelp Forest, Pulse, Rain Harbour, Resonance, Valley Hours
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.