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

Repeat2d Op



Repeat2d
Namespace: Ops.Trigger

Op author: pandur

Test Patches: 7 Tests

Triggers all ops underneath Num X * Num Y times


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.



Inputs

exe (Trigger)

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 (Trigger)

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)

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

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.


Patches using Repeat2d

  • Examples (2)
  • Public
  • My Patches