Value Array
Intro
Create a list of values that can be assigned to other Layers via their indices.
UI
Mode - Set which value(s) is output:
- Index - Output all indices within the array.
- Minimum - Output the smallest value of all the values within the Array.
- Maximum - Output the largest value of all the values within the Array.
- Average - Output the mean of all the values within the Array.
- Accumulate - Output the total of all 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.
- 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.
- Create 3 indices (Add button) and set values of 3, 5 and 8 for each index.
- Connect valueArray.id→basicShape.sides.
- Connect a Random node to the Array Index of the Value Array.
- 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.