Houdini 20.5 Nodes APEX nodes

ForBegin

Defines the start of a for loop.

On this page
Since 20.0

Defines the start of a for loop that executes the block of nodes sandwiched between this node and its corresponding ForEnd node (connected via their scope ports). The block of nodes are executed for a predefined number of iterations.

Inputs

iterations: Int

The number of iterations to loop for.

__spare__

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

Outputs

scope: undefined

Used to define the scope of the for loop. Must be wired to the scope input of the corresponding ForEnd node.

index: Int

The index of the current iteration, starting at 0 for the first iteration.

__spare__

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

See also

APEX nodes