User guide
168
The diagram below shows an example of physical and logical connections in the Node Graph. Nodes A and B have
physical connections to inputs on the Switch node, and node C has a physical connection to the output of the Switch
node.
The logical connection from node A or B to node C, depends on the setting of the switch. When the Switch node’s in
parameter is set to 0, there is a logical connection from node A, to node C, passing through the Switch node. When
the Switch node’s in parameter is set to 1, there is a logical connection from node B to node C, passing through the
Switch node.
Physical and Logical Source
Physical Source
To find the physical source from a given port, use <yourPortName>.GetConnectedPorts(). For example, create a
PrimitiveCreate node and a Merge node, connect the output of the PrimitiveCreate node to an input on the Merge
node, then get the source of the connection into the Merge node:
# Get the root node
root = NodegraphAPI.GetRootNode()
23 NODEGRAPH API | PHYSICAL AND LOGICAL CONNECTIONS