Houdini 20.5 Nodes APEX nodes

array::Insert<T>

Inserts an element at a specific array index.

On this page
Since 20.0

Inserts an element at the array index. All the elements to the right of the inserted element are moved over. If the index is larger than the array, the array is expanded with default elements in order to place the new element at the correct 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.

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

The value to insert into the array.

index: Int

The index of the array at which to insert value.

Outputs

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

The updated array with the inserted element.

See also

APEX nodes