Utility node

for_each

For-each: split input into pieces, run a network on each (with detail attrib 'iteration', 'piece'), merge results. Per-piece cached.

Inputs

Parameters 4

networkstring
Default ""

Network run once per piece; subnet_input index 0 = piece, index 1 = extra input

piece_bymenu
Default connectivityOptions name class connectivity prim point count

How to split input 0 (prim attrib name/class, connectivity, every prim, every point, or N iterations)

iterationsint
Default 5

For piece_by=count: run N times on the whole input (detail 'iteration' set)

merge_resultstoggle
Default on

No description.

Use it

Add it from the node menu (right-click empty graph space or Tab, then type for_each), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"for_each","name":"my_for_each","params":{},"inputs":["src"]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.