OmniGraph Node omni.graph.action.ForEach¶
omni.graph.action.ForEach Properties¶
Name |
Value |
---|---|
Version |
1 |
Extension |
omni.graph.action |
Icon |
ogn/icons/omni.graph.action.ForEach.svg |
Has State? |
True |
Implementation Language |
Python |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
For Each Loop |
__categories |
graph:action,flowControl |
__language |
Python |
Generated Class Name |
OgnForEachDatabase |
Python Module |
omni.graph.action |
omni.graph.action.ForEach Description¶
Executes the a loop body once for each element in the input array. The finished output is executed after all iterations are complete
omni.graph.action.ForEach Inputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
inputs:arrayIn |
any |
None |
Y |
The array to loop over, must be an array of a simple type |
uiName |
Input Array |
|||
inputs:execIn |
execution |
None |
Y |
Input execution |
omni.graph.action.ForEach Outputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
outputs:arrayIndex |
int |
None |
Y |
The current or last index visited |
outputs:element |
any |
None |
Y |
The current or last element of the array visited |
outputs:finished |
execution |
None |
Y |
Executed when the loop is finished |
outputs:loopBody |
execution |
None |
Y |
Executed for each element of the array |
omni.graph.action.ForEach State¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
state:arrayIndex |
int |
None |
Y |
The array index to be evaluated next |