Amazon VERSION 2.0V1 Uživatelská příručka Strana 168

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 264
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 167
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 nodes 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
Zobrazit stránku 167
1 2 ... 163 164 165 166 167 168 169 170 171 172 173 ... 263 264

Komentáře k této Příručce

Žádné komentáře