Houdini 20.5 Nodes APEX nodes

geo::SetPrimAttribValuesByName<T>

Sets the value of an attribute on the primitives that match a second attribute name.

On this page
Since 20.0

Sets the value of an attribute, attribname, on the primitives in a geometry based on the presence of another attribute, nameattrib.

See geo::SetPointAttribValuesByName for more information on how the subports on the value variadic input are used to set the attribute values.

The geo ports of this node are in-place ports, which means that the geometry is updated without creating a copy.

Inputs

*geo: Geometry Required

The geometry on which to set the attribute.

nameattrib: String

The name of a string primitive attribute that is used to find primitives on the geometry. If multiple primitives have the same value for the nameattrib attribute, only the first found primitive has its attribname value set. See geo::SetPointAttribValuesByName for an example.

attribname: String

The name of the attribute to set the value for. If there is no attribname attribute on the geometry, a new attribute is created.

value: VariadicArg<Dict>, VariadicArg<Float>, VariadicArg<Int>, VariadicArg<Matrix3>, VariadicArg<Matrix4>, VariadicArg<String>, VariadicArg<Vector2>, VariadicArg<Vector3>, VariadicArg<Vector4>

A variadic input of attribute values to set.

Outputs

*geo: Geometry

The updated geo input with the attribute values modified.

See also

APEX nodes