Houdini 20.0 Nodes APEX Nodes

array::Set<T>

Sets an element in an array.

On this page
Since 20.0

Sets the value of the array element at index.

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

Inputs

*array: ApexDynamicPathArray, BoolArray, DictArray, FloatArray, GeometryArray, IntArray, Matrix3Array, Matrix4Array, StringArray, Vector2Array, Vector3Array, Vector4Array Required

The input array.

index: Int

The array index at which to set the element. If the index is negative, the element is set at an index computed from the end of the array: value = array[array.size() + index].

value: ApexDynamicPath, Bool, Dict, Float, Geometry, Int, Matrix3, Matrix4, String, Vector2, Vector3, Vector4

The value to set.

Outputs

*array: ApexDynamicPathArray, BoolArray, DictArray, FloatArray, GeometryArray, IntArray, Matrix3Array, Matrix4Array, StringArray, Vector2Array, Vector3Array, Vector4Array

The resulting array.

success: Bool

Set to True if the element is set successfully. Set to False if the index is out of bounds.

See also

APEX Nodes