Motion
Get Motion

ReferenceScripting APIMotionScenesetVar

MotionScene.setVar

method

Fills {name} in every Text layer, so one layer can say "It's {temp} outside".

NamesetVar
Kindmethod of MotionScene
Called asscene.setVar(…)
As a nodeSet Text Placeholder (logic graph)
Since0.3

Syntax

setVar(    name: string,    value: unknown): void

Parameters

NameTypeDescription
namestringThe name inside the braces
valueunknownWhat goes there

Returns

Nothing.

Example

scene.setVar("temp", "21°");