Houdini 20.0 Nodes APEX Nodes

GetComponent<T>

Extracts a single component of a vector or matrix type.

On this page
Since 20.0

Gets a single component of a vector or matrix. Raises an error if index is invalid.

For arrays, use array::Get.

Inputs

Vector
vector: Vector2, Vector3, Vector4

The vector to extract the component from.

index: Int

The position in the vector to extract the component.

Matrix
matrix: Matrix3, Matrix4

The matrix to extract the component from.

row: Int

The row, along with col, that specifies the position in the matrix to extract the component.

col: Int

The column, along with row, that specifies the position in the matrix to extract the component.

Outputs

result: Float

The extracted component.

See also

APEX Nodes