beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.Trigger.Repeat2d

Repeat2d
op id:79934693-5887-4173-8b48-3e3a18fcf225
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.

doc

youtube id

collections

related ops

Inputs

exe (Function)

Executes the loop


num x (integer Number)

Number of times executed on the X axis


num y (integer Number)

Number of times executed on the Y axis


mul (Number)

Multiplies the X and Yvalues, makes it easier e.g. to use the outputs directly in a Ops.Gl.Matrix.Transform


center (boolean Number)

Centers X and Y around the origin (0/0)


Outputs

trigger (Function)

Trigger for each iteration of the loop


x (Number)

The X value for the current iteration


y (Number)

The Y value for the current iteration


index (Number)

Current index. If you have a 5x5 repeater, this value goes from 0 to (including) 24


total iterations (Number)

Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using Repeat2d

Public Patches using Repeat2d