Motion
Get Motion

ReferenceScript nodesUtilities › Flow Control

Repeat Loop

Does body a number of times (a thousand at most), with Index counting from 0, then done.

Inputs

PinTypeStarts atNotes
inwhat happens next––
Counttimesnumber3–

Outputs

PinType
Loop Bodybodywhat happens next
Indexindexnumber
Completeddonewhat happens next

The code it becomes

The graph below written as a script would write it.

let s2_index = 0;// On Scene StartL2: for (let i = 0, end = Math.min(1000, Math.floor(3)); i < end; i++) {    s2_index = i;    scene.log(s2_index);}

In a graph

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