For Each Target Loop
Activates the ‘Loop Body’ signal once for each target in ‘Targets’, making the current array member available in the output ‘Target’ with its index in ‘Array Index’. After every element of ‘Targets’ has been processed the ‘Finished’ signal is activated. All of this will happen in a single execution of the node, giving you the ability to evaluate a downstream graph multiple times with different inputs coming from the changing ‘Target’ output.
Installation
To use this node enable omni.graph.action_nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Exec In (inputs:execIn) |
|
Signal to the graph that this node is ready to be executed. |
None |
Targets (inputs:targets) |
|
The targets array to loop over |
None |
Metadata |
allowMultiInputs = 1 |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Array Index (outputs:arrayIndex) |
|
The value of the current index being visited by the loop. Keeps the value of the last index after the loop has completed. The index starts at zero and increments by one as it walks through the members of ‘Targets’. |
None |
Finished (outputs:finished) |
|
When the final element of ‘Targets’ has been processed signal the graph that execution can continue downstream. |
None |
Loop Body (outputs:loopBody) |
|
For each member of ‘Targets’ signal the graph that execution can continue downstream. |
None |
Target (outputs:target) |
|
The current member of ‘Targets’ being visited by the loop. Keeps the value of the last array element after the loop has completed. |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.action.ForEachTarget |
Version |
1 |
Extension |
omni.graph.action_nodes |
Icon |
ogn/icons/omni.graph.action.ForEachTarget.svg |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
For Each Target Loop |
Categories |
graph:action,flowControl |
Generated Class Name |
OgnForEachTargetDatabase |
Python Module |
omni.graph.action_nodes |