Color Array
Intro
Create a list of colors that can be assigned to other Shapes via their indices.
UI
Auto Index - When checked the node will automatically output all indices.
Index - Select the index within the array.
Reverse - Invert the order the indices are output in. For example, where there are 3 indices 0,1,2
, their order will be reversed to 2,1,0
.
Count - Output the number of indices in the array.
- Use this button to add more rows (indices) to the UI.0: Color - The first index in the array.
Example
Start with a simple Basic Shape in a Duplicator.
- Click the button twice to create a total of 3 indices and set different colors for each one.
- Connect colorArray.id→basicShape.color.
- Connect a Random Behaviour.
- Set Minimum to 0 and Maximum to 2.
- Connect random.id→colorArray.index.
Each duplicate will be set a random color.
Also see Value Array.
Double click to set Index
Double clicking on a indices' row will set the Index to that value.