ReferenceScript nodesUtilities › Flow Control
Do Once
Goes on the first time only (reset lets it go once more); with Start Closed on, not until it's been reset.
▸Do Once
Completed
Reset
Start Closed
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Resetreset | what happens next | – | – |
Start ClosedstartClosed | bool | false | – |
Outputs
| Pin | Type |
|---|---|
Completedthen | what happens next |
The code it becomes
The graph below written as a script would write it.
let q2 = undefined;// On Scene Startif (q2 === undefined) q2 = !!(false);if (!q2) { q2 = true;}In a graph
◆On Scene Start
▸Do Once
Completed
Reset
Start Closed
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.