Skip to main content

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.

  1. Create 3 indices (Add button) and set different colors for each one.
  2. Connect colorArray.idbasicShape.color.
  3. Connect a Random Behaviour.
  4. Set Minimum to 0 and Maximum to 2.
  5. Connect random.idcolorArray.index.

Each duplicate will be set a random color.

Also see Value Array.