ReferenceScript nodesUtilities › Flow Control
Retriggerable Delay
Waits the seconds, then goes on; coming in again while it waits starts the wait over.
◷Retriggerable Delay
Completed
Duration1
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Durationseconds | number | 1 | – |
Outputs
| Pin | Type |
|---|---|
Completedthen | what happens next |
The code it becomes
The graph below written as a script would write it.
let q2 = 0;// On Scene Startif (q2) scene.cancel(q2);q2 = scene.after(1, function () { q2 = 0;});In a graph
◆On Scene Start
◷Retriggerable Delay
Completed
Duration1
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.