Houdini 20.5 Nodes APEX nodes

array::Remove<T>

Removes an element from an array.

On this page
Since 20.0

Removes the array element at index. Elements to the right of the deleted element are moved over to fill the gap. If the index is out of bounds, the array is unchanged.

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 index of the element to remove from the array.

Outputs

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

The updated array with the element removed.

See also

APEX nodes