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? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
For Each Loop |
__categories |
graph:action,flowControl |
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 |
[‘bool[]’, ‘colord[3][]’, ‘colord[4][]’, ‘colorf[3][]’, ‘colorf[4][]’, ‘colorh[3][]’, ‘colorh[4][]’, ‘double[2][]’, ‘double[3][]’, ‘double[4][]’, ‘double[]’, ‘float[2][]’, ‘float[3][]’, ‘float[4][]’, ‘float[]’, ‘frame[4][]’, ‘half[2][]’, ‘half[3][]’, ‘half[4][]’, ‘half[]’, ‘int64[]’, ‘int[2][]’, ‘int[3][]’, ‘int[4][]’, ‘int[]’, ‘matrixd[3][]’, ‘matrixd[4][]’, ‘normald[3][]’, ‘normalf[3][]’, ‘normalh[3][]’, ‘pointd[3][]’, ‘pointf[3][]’, ‘pointh[3][]’, ‘quatd[4][]’, ‘quatf[4][]’, ‘quath[4][]’, ‘texcoordd[2][]’, ‘texcoordd[3][]’, ‘texcoordf[2][]’, ‘texcoordf[3][]’, ‘texcoordh[2][]’, ‘texcoordh[3][]’, ‘timecode[]’, ‘token[]’, ‘transform[4][]’, ‘uchar[]’, ‘uint64[]’, ‘uint[]’, ‘vectord[3][]’, ‘vectorf[3][]’, ‘vectorh[3][]’] |
None |
Y |
The array to loop over |
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 |
[‘bool’, ‘colord[3]’, ‘colord[4]’, ‘colorf[3]’, ‘colorf[4]’, ‘colorh[3]’, ‘colorh[4]’, ‘double’, ‘double[2]’, ‘double[3]’, ‘double[4]’, ‘float’, ‘float[2]’, ‘float[3]’, ‘float[4]’, ‘frame[4]’, ‘half’, ‘half[2]’, ‘half[3]’, ‘half[4]’, ‘int’, ‘int64’, ‘int[2]’, ‘int[3]’, ‘int[4]’, ‘matrixd[3]’, ‘matrixd[4]’, ‘normald[3]’, ‘normalf[3]’, ‘normalh[3]’, ‘pointd[3]’, ‘pointf[3]’, ‘pointh[3]’, ‘quatd[4]’, ‘quatf[4]’, ‘quath[4]’, ‘texcoordd[2]’, ‘texcoordd[3]’, ‘texcoordf[2]’, ‘texcoordf[3]’, ‘texcoordh[2]’, ‘texcoordh[3]’, ‘timecode’, ‘token’, ‘transform[4]’, ‘uchar’, ‘uint’, ‘uint64’, ‘vectord[3]’, ‘vectorf[3]’, ‘vectorh[3]’] |
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 |