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.

Button iconAdd
- 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. Click the
    Button iconAdd
    button twice to create a total of 3 indices 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.

Double click to set Index

Double clicking on a indices' row will set the Index to that value.