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.
Add - 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.
- Create 3 indices (Add button) 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.