Create Attribute
Adds an attribute to a mesh, filled with a constant, random or evenly spaced value per vertex.
Outputs
| Name | Type | Description |
|---|---|---|
| Output | Mesh | The mesh with the new attribute added. |
Inputs
| Name | Type | Description |
|---|---|---|
| Input | Mesh | The mesh to add the attribute to. |
Parameters
| Name | Type | Description |
|---|---|---|
| Type | Enum | How many numbers each vertex gets.Choices: Float, Vector 2, Vector 3, Vector 4 |
| Mode | Enum | How the values are filled in.Choices: Constant, Random, Normal Distribution, Sequence |
| Attribute Name | String | The name the new attribute is stored under, which other operators use to find it. |
| Value | [Type] | The value every vertex gets. Only present in Constant mode. |
| Min | [Type] | The lowest value. Only present in Random and Sequence mode. |
| Max | [Type] | The highest value. Only present in Random and Sequence mode. |
| Mean | [Type] | The value the random values gather around. Only present in Normal Distribution mode. |
| Std Deviation | [Type] | How far the random values spread out from the mean. Only present in Normal Distribution mode. |
| Seed | Int | Which random pattern is used. Only present in Random and Normal Distribution mode. |
The Create Attribute operator gives every vertex of a mesh a value of its own, stored under a name. The value does nothing by itself: operators later in the chain read it by name, such as Move, which uses it to decide how far each vertex goes.
In Constant mode, every vertex gets the same value. In Random mode, each vertex gets a value between the minimum and the maximum, with every value equally likely. In Normal Distribution mode, most values lie close to the mean and fewer further out. In Sequence mode, the values run evenly from the minimum at the first vertex to the maximum at the last.
The random values stay the same from frame to frame and only change with the seed. A vector type fills each component on its own.
See also Move, Noise Attribute, Distance.
Keywords: vertex data, random, gradient, sequence, per vertex, weight