Houdini 21.0 Nodes APEX nodes

array::Find<T>

Finds the index of an array element with a specific value.

On this page
Since 20.0

Finds the index of the array element with a specific value. Returns -1 if an element with value does not exist in the array.

Inputs

array: ApexNodeIDArray, ApexPortIDArray, BoolArray, FloatArray, IntArray, Matrix3Array, Matrix4Array, SimRootDataIdArray, StringArray, Vector2Array, Vector3Array, Vector4Array

The input array.

value: ApexNodeID, ApexPortID, Bool, Float, Int, Matrix3, Matrix4, SimRootDataId, String, Vector2, Vector3, Vector4

The value of the array element to find.

Outputs

index: Int

The index of the array element with value. Returns -1 if an element with value is not found.

APEX nodes