Houdini 20.0 Nodes APEX Nodes

geo::ForEachPrimBegin

Define the start of a for each primitive loop.

On this page
Since 20.0

Define the start of a for each loop over the primitives in a geometry.

The geo ports of this callback are in-place ports. This means that the geometry is updated without creating a copy.

Inputs

*geo: Geometry Required

The geometry from which to get the primitives to loop over.

group: String

An optional pattern to use for looping over a subset of primitives.

The pattern format is the same one used by the group fields on SOP nodes that take primitive selections. Elements in the pattern are separated by spaces, and elements can be primitive numbers, primitive number ranges, or group names.

spare

Extra inputs for use within the block. If a spare input on the ForEachPrimBegin matches the name of a spare input on the corresponding ForEachPrimEnd node, the value will be fedback each iteration.

Outputs

scope: undefined

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

*geo: Geometry

The geo input which primitives are being iterated over.

element: Int

The primitive number of the primitive that is being iterated over.

spare

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

APEX Nodes