Houdini 20.5 Nodes APEX nodes

ForEachEnd<T>

Defines the end of a for-each loop.

On this page
Since 20.0

Defines the end of a for-each loop that loops over the elements of an array, and executes the block of nodes sandwiched between this node and its corresponding ForEachBegin node (connected via their scope ports).

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

Inputs

scope: undefined

Used to define the scope of the for-each loop. Must be wired to the scope output of the corresponding ForEachBegin node.

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

The array whose elements are iterated over. This should be connected to the array output of the corresponding ForEachBegin node.

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

The new value to set in the array, replacing the element (from the corresponding ForEachBegin node) of the current iteration.

__spare__

Extra inputs for use within the block. If a spare input on the ForEachEnd node matches the name of a spare input on the corresponding ForEachBegin node, the value is fed back each iteration.

Outputs

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

The modified array that is iterated over.

__spare__

Pass-through of the corresponding input, for use within the block.

See also

APEX nodes