Modulate
Output sequences of numbers.
Last updated
Was this helpful?
Output sequences of numbers.
Last updated
Was this helpful?
+
Mode:
Remainder - create a sequence based on a Divisor value.
Pass /Fail - create a sequence based on whether the remainder is 0 (pass) or not (fail).
Custom Pattern - create your own pattern.
Divisor - setting a value of n will create a sequence of numbers from 0 > n-1. e.g. a value of 3 will create a sequence of 0,1,2,0,1,2,0... (see below).
Index Offset - offset the order of the pattern. e.g. if your pattern is 0, 1, 2, 0, 1, 2... an Index Offset of 1 will result in 1, 2, 0, 1, 2, 0...
Offset - offset the start value. e.g. if your pattern is 0, 1, 2, 0, 1, 2... an Offset of 2 will result in 2, 3, 4, 2, 3, 4...
Pass Value - when the remainder is 0, output this value.
Fail Value - when the remainder is not 0, output this value.
Custom Pattern - enter a pattern of values separated by commas.
Example usage Remainder:
Create 3 (circle, rectangle, polygon).
Select all 3 Shapes.
Hold alt
and click the icon.
Set Count to x = 5, y = 5 on the Duplicator.
Create a Modulate.
Set Divisor to 3.
Connect modulate.id > duplicator.shapeId.
With a Divisor of 3 Modulate is outputting values of 0, 1, 2, 0, 1, 2, 0... so your Duplicator outputs circle, rectangle, polygon, circle, rectangle, polygon, circle... (depending on the order they were added).
Example usage for Pass/ Fail:
Select the Shape.
Set the Distribution to Linear on the Duplicator.
Set Count to 9 and Size to 900.
Add a second index and set a different color.
Connect colorArray.id > basicShape.FillColor.
Create a Modulate Behaviour.
Set Mode to Pass/ Fail.
Set Divisor to 3.
Connect modulate.id > colorArray.index.
The resulting sequence is 0,1,1,0,1,1,0... (see below for the math). If your Pass Value = 0 and Fail Value = 1 then that translates to pass, fail, fail, pass, fail, fail, pass... If the colors on your Color Array are red and green the resulting sequence of colors will then be red, green, green, red, green, green, red, green...
Create a .
Hold alt
and click the icon.
Create a .