Houdini 22.0 Nodes APEX nodes

geo::PrimAttribValuesToArray<T>

Returns the values of a primitive attribute as an array.

On this page
Since 22.0

Returns the values of a given primitive attribute as an array. This can be used with geo::SetPrimAttribValuesFromArray to set data back into a geometry.

Tip

Getting the primitives as an array and looping over the array elements has a significant performance advantage over looping over the primitives and getting the values individually because it reduces the need to look up the data multiple times.

Warning

When doing major geometry operations, this is not a good replacement for VEX or OpenCL.

Inputs

geo: Geometry

The geometry on which to look for the attribute.

attribname: String

The name of the attribute whose values to return.

group: String

A group expression to filter the selection of primitives whose attribute values to return.

Outputs

values: DictArray, FloatArray, IntArray, Matrix3Array, Matrix4Array, StringArray, Vector2Array, Vector3Array, Vector4Array

The values of the attribute.

success: Bool

Returns True if the operation is successful. The operation can fail if the attribute cannot be found on the geometry or group is invalid.

See also

APEX nodes