Accessing Iterations in a node loop - houdini
# 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.
- A string path pointing to the correct metadata node of the loop.
- The string name of the detail attribute we want to grab. In this case iteration
- 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.