Layer Seed
Intro
The Layer Seed can be connected to an attribute in order for that attribute's parent Layer to pass unique values to its output connections.
Layers such as the Duplicator can automatically 'seed' random numbers to its Input Shapes but this is not true for individual Layers where, for example, 3 Random Behaviours are required to generate 3 random numbers. Rather than managing several Layers, a Layer Seed can, for example, be connected to a single Random Behaviour's Seed attribute to generate different random numbers for each of the Layers it's connected to.
UI
Offset - Offset the value to generate new seeds.
- Create a Text Shape.
- Click the Text Shape's Random Date. button and choose
- Select the Text Shape and then Cmd/Ctrl + D twice to create two duplicates.
- Move them apart in the Viewport.
- Right click on the Random Date String Generator's Seed attribute >
Add Utility > Layer Seed
.
The Random Date passes a different seed to each Text Shape which renders a unique date.
- Create an Ellipse.
- Create a Color Array.
- On the Color Array, click the
+ Add
button 3 times to add 3 indices. - Set a unique color for each index.
- Connect colorArray.id→ellipse.fillColor.
- Uncheck Auto Index.
- Right click on the Color Array's Index attribute >
Add Utility > Layer Seed
. - Right click on the Color Array's Index attribute >
Add Expression...
- Enter
%4
. - With the Ellipse selected, hit Cmd/Ctrl + D several times to create several duplicates of the Ellipse.
- Move the Ellipses apart in the Viewport.
Each Ellipse is given a random Fill Color from the Color Array.
The %4
Attribute Expression (modulo 4) converts the values from the Layer Seed to a value between 0 and 3 to match the number of ids in the Color Array.