Repeat2d Op
Triggers all ops underneath Num X * Num Y times
Summary (oneliner)
Imagine a Ops.Trigger.Repeat connected to a Ops.Trigger.Repeat, or a for loop inside a for loop. This loop is especially useful for drawing a matrix of objects.
- Ops.Trigger.Repeat2d
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch Repeat 2D
The repeat 2D op is like using two repeat ops in one. Check the Repeat example for a simplified demonstration of this patch.
INPUT PORTS
Executes the loop
Number of times executed on the X axis
Number of times executed on the Y axis
Multiplies the X
and Y
values, makes it easier e.g. to use the outputs directly in a Ops.Gl.Matrix.Transform
Centers X
and Y
around the origin (0/0)
OUTPUT PORTS
Trigger for each iteration of the loop
The X value for the current iteration
The Y value for the current iteration
Current index. If you have a 5x5 repeater, this value goes from 0 to (including) 24