Doc > Nodes > SOP > AttribCreate

Doc > Nodes > SOP > AttribCreate

Creates an attribute on the geometry or object.

Description

This allows you to create an attribute and define the following: - the group this applies to - the name - the type (numeric or string) - the size (float, vector2, vector3 or vector4) - the class (geometry or object attribute) - the value

Note that you can also given an expression to set the value of the attribute, such as sin(2*@P.z)

Parameters

Name Type Description
group string the group this applies to
class integer the attribute class (geometry or object)
type integer the attribute type (numeric or string)
name string the attribute name
size integer the attribute size (1 for float, 2 for vector2, 3 for vector3, 4 for vector4)
value1 float the value for a float attribute
value2 vector2 the value for a vector2
value3 vector3 the value for a vector3
value4 vector4 the value for a vector4
string string the value for a string attribute

Examples

Is this doc helpful/not helpful? Is there any information you would like that is not available? Don't hesitate to get in touch with any question or feedback, either by email, on Discord or the forum.