Motion
Get Motion

ReferenceScripting APIMotionLayerset

MotionLayer.set

method

Changes one of this layer's settings at once.

Nameset
Kindmethod of MotionLayer
Called asscene.layer(…).set(…)
As a nodeSet Layer Setting (logic graph)
Since0.3

Syntax

set(    setting: string,    value: SettingValue): void

Parameters

NameTypeDescription
settingstringA setting's key, such as "opacity" or "colour1"
valueSettingValueA 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