Houdini 20.5 Nodes APEX nodes

SetComponent<T>

Sets a single component of a vector or matrix type.

On this page
Since 20.0

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

The vector and matrix ports of this node are in-place ports, which means that the vector or matrix is updated without creating a copy.

For arrays, use array::Set.

Inputs

Vector
*vector: Vector2, Vector3, Vector4 Required

The vector to update.

value: Float

The value to set at the index of the vector.

index: Int

The position in the vector to set the component value.

Matrix
*matrix: Matrix3, Matrix4 Required

The matrix to update.

value: Float

The value to set at the (row, col) position in the matrix.

row: Int

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

col: Int

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

Outputs

Vector
*vector: Vector2, Vector3, Vector4

The updated vector.

Matrix
*matrix: Matrix3, Matrix4

The updated matrix.

See also

APEX nodes