Knowledge Garden

Search

Search IconIcon to open search

Accessing Iterations in a node loop - houdini

Last updated Oct 27, 2022 Edit Source

# Accessing Iterations in a node loop

To access the iterations of a loop you have to set up a few things. Select the Block Begin of the loop nodes. The click the Create Meta Import Node button in the properties window. This will create a Meta Import Node If we view node info for that node we will see two imortant Detail Attributes: iteration and numiterations which are both integers. Because these are detail attributes we can access them throughout our network with a detail expression function.

  1. A string path pointing to the correct metadata node of the loop.
  2. The string name of the detail attribute we want to grab. In this case iteration
  3. The attribute index, in this case not applicable, but if it was a vector or something else we could use this here.

Now we can see the iterations in that parameter field.