Skip to main content

Value Array

Intro

Create a list of values that can be assigned to other Layers via their indices.

UI

Mode - Set which index/indices are output:

  • Index - Output all indices within the array.
  • Minimum - Output the index with the smallest value.
  • Maximum - Output the index with the largest value.
  • Average - Output the mean of the values within the Array.

Auto Index - When checked the layer will automatically output all indices.

Array 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: Value - The first index in the array.

Example

Start with a simple Basic Shape (Polygon) in a Duplicator.

  1. Create 3 indices (Add button) and set values of 3, 5 and 8 for each index.
  2. Connect valueArray.idbasicShape.sides.
  3. Connect a Random node to the Array Index of the Value Array.
  4. Set Min and Max on Random to 0 and 2

Each duplicate will randomly be a 3, 5 or 8 sided polygon.

Also see Color Array.