Repeat_v2 Op

Repeat

Triggers all ops below x times (for loop / while)


<p>All ops connected to the <code>Trigger</code> port will be triggered <code>Num</code> times.</p> <p>this op works like a classic for loop</p> <p>e.g:</p> <p>num is 5 </p> <p>direction <code>forward</code>: the index will go from 0 to 4 <code>0,1,2,3,4</code></p> <p>direction <code>backward</code>: the index will go from 4 to 0 <code>4,3,2,1,0</code></p>


Full Name
  • Ops.Trigger.Repeat_v2
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches


Example Patch Repeat

The repeat op is like a traditional For loop. It allows you to trigger all the ops underneath a certain amount of times. Each new trigger has an index number associated with it which allows each repeat cycle to be controlled separately from each other. In this example the index is used to change the X position of each cube. This same number is then mapped to a 0-1 range to change the color of the cubes

Open In Editor

Youtube Video Tutorial

INPUT PORTS


Execute (Trigger)
Repeats (Number:

<i>integer</i>

)

<p>How often the loop should be executed</p>

Direction index (Number:

<i>integer</i>

)

OUTPUT PORTS


Next (Trigger)
index (Number)

Patches using Repeat_v2

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2019-10-29 10:57