ReferenceScripting APIMotionSceneread
MotionScene.read
methodA setting as it was last drawn: its keyframes, the sound and moves in.
| Name | read |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.read(…) |
| As a node | Get Live Layer Setting (logic graph) |
| Since | 0.4 |
Syntax
read( 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 as last drawn.
Remarks
Live from the turn after it's first read; until then what get gives. 64 settings read at most.
Example
const x = scene.read("Cloud", "x");See also
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.