Houdini 22.0 Nodes APEX nodes

ForRangeBegin

Defines the start of a for loop that runs over a range of integers.

On this page
Since 22.0

Defines the start of a for loop that loops over a range of integers and executes the block of nodes sandwiched between this node and its corresponding ForRangeEnd node (connected via their scope ports).

The range is a sequence of integers on the half-open interval [start, stop). The range can be sampled at a stride using step, which determines the number of elements between samples. The index port updates each loop iteration with the current index value from the range.

Inputs

start: Int

The first number in the range (inclusive). The default value is 0.

stop: Int

The last number in the range (exclusive). The default value is 0.

step: Int

The increment between the range values. The default value is 1.

__spare__

Extra inputs used within the block.

Outputs

scope: undefined

Used to define the scope of the for loop. This must be wired to the scope input of the corresponding ForRangeEnd node.

index: Int

The index of the current iteration, starting at the value of the start port for the first iteration.

__spare__

Pass-through of the corresponding input to use within the block.

See also

APEX nodes