ReferenceScripting APIMotionSceneget
MotionScene.get
methodA setting's value: what the script last set, or else what the scene started with. Not what keyframes, the sound or a move make it: see read.
| Name | get |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.get(…) |
| As a node | Get Layer Setting (logic graph) |
| Since | 0.3 |
Syntax
get( layer: string, setting: string): SettingValue | undefinedParameters
| Name | Type | Description |
|---|---|---|
layer | string | The layer's name or id |
setting | string | The setting's key |
Returns
SettingValue | undefined: the value, or undefined.
Example
const o = scene.get("Sun", "opacity");See also
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.