Motion
Get Motion

ReferenceScript nodesRendering

Set Material Value

Sets a Shader layer's own uniform, or a layer's material's own value, by name.

RenderingsetMaterial

Inputs

PinTypeStarts atNotes
inwhat happens next––
Layerlayerlayer––
Namenametext"speed"–
Valuevalueany1–
OFofchoiceShader uniformOne of: Shader uniform, Material.

Outputs

PinType
thenwhat happens next

The code it becomes

The graph below written as a script would write it.

// On Scene Start(function (l) { if (Math.round(0) === 1) l.material("speed", 1); else l.uniform("speed", 1); })(scene.layer(""));

In a graph

The node with what starts it and Print to show what it gives, as Studio draws them.