Houdini 22.0 Nodes APEX nodes

geo::PointAttribValuesToArray<T>

Returns the values of a point attribute as an array.

On this page
Since 22.0

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

Tip

Getting the points as an array and looping over the array elements has a significant performance advantage over looping over the points 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 points whose attribute values to return. For example, setting group to 2-5 returns an array of size 4.

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