Doc > Nodes > SOP > AttribSetAtIndex

Doc > Nodes > SOP > AttribSetAtIndex

Sets an attribute value for a specific point or object


While the same operation is possible using the sop/attribCreate and its group parameter, this node is more performant. Also, unlike the sop/attribCreate, it does not accept point specific variables such as @ptnum in expressions.


Name Type Description
index integer the point or object index 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
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.