Instance Index

Produces the index of the current iteration of a loop by reading from the evaluation context, which is supplied by downstream nodes such as Instance Repeat.

Nested loops can enable 2D or higher-dimensional iteration by using the Loop Level parameter to read the index from outer levels of loops.

Interface

Context

ReadsIndex

Inputs

ParameterDetailsPossible Types
-No Primary Input-
Loop Level

The number of nested loops to traverse outwards (from the innermost loop) to get the index from. The most upstream loop is level 0, and downstream loops add levels.

In programming terms: inside the double loop i { j { ... } }, Loop Level 0 = j and 1 = i. After inserting a third loop k { ... }, inside it, levels would be 0 = k, 1 = j, and 2 = i.

Default: 0

u32

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

f64