ReferenceScripting APIMotionScenesetVar
MotionScene.setVar
methodFills {name} in every Text layer, so one layer can say "It's {temp} outside".
| Name | setVar |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.setVar(…) |
| As a node | Set Text Placeholder (logic graph) |
| Since | 0.3 |
Syntax
setVar( name: string, value: unknown): voidParameters
| Name | Type | Description |
|---|---|---|
name | string | The name inside the braces |
value | unknown | What goes there |
Returns
Nothing.
Example
scene.setVar("temp", "21°");Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.