Amazon VERSION 2.0V1 Betriebsanweisung Seite 157

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 264
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 156
23 Nodegraph API
The Nodegraph API is a Python interface for creating Katana recipes by adding and connecting nodes, and setting
Parameters. The Nodegraph API cannot access the Scene Graph. In order to understand the limitations of the Node
Graph it’s important to have a clear understanding of the difference between the Node Graph and the Scene
Graph. See Katana For The Impatient for more on this.
The Nodegraph API can be accessed by Python scripts in the Python tab, Super Tools, plug-ins, shelves and other
custom UI. It is available to scripts used running in script and shell modes, but is hidden from, and so should not be
used by Attribute Scripts or Parameter expressions. Attempting to access the Nodegraph API from Attribute Scripts
or Parameter expressions could result in topological changes to the Node Graph whilst it is being evaluated. The
Nodegraph API can only be used inside a running Katana session, it is not a standalone Python module.
Nodegraph API Basics
When Katana iterates over the Scene Graph it performs what is effectively a depth-first graph search. Starting at a
single top level node, it asks for any nodes adjacent to that location, then interrogates each of those nodes on their
adjacent nodes, and so on. For this reason, a Katana Scene Graph is always nested under a single root location.
Creating a New Node
Nodes must be created under the root node, or under a node that accepts child nodes (such as a Group node, or
SuperTool), nested under the root node. To create nodes directly under the root node, you must pass the Node
Graph root location as an argument. To create nodes under a Group node, enter the group location as an argument.
For example, to add a Primitive Create node under the root node enter the following in the Python tab:
# Get the root node
root = NodegraphAPI.GetRootNode()
# Create a new node under the root node
node = NodegraphAPI.CreateNode( 'PrimitiveCreate', root )
This creates a new PrimitiveCreate node, which - in turn - generates a scene graph location containing a single
primitive. By default the PrimitiveCreate node is set to type sphere.
The new node is an instance of a Python class that represents that node type, and may contain additional methods
specifically for working with that type. For example, a Gaffer node has addLight() and getLightPaths() methods
that do not exist for other node types.
NOTE: You can use the Python help function to get information about a particular function call. For
Seitenansicht 156
1 2 ... 152 153 154 155 156 157 158 159 160 161 162 ... 263 264

Kommentare zu diesen Handbüchern

Keine Kommentare

Longacre 50100 Tirelief Kit manuály

Uživatelské manuály a uživatelské příručky pro Pro auto Longacre 50100 Tirelief Kit.
Poskytujeme 1 manuály pdf Longacre 50100 Tirelief Kit ke stažení zdarma podle typů dokumentů: Uživatelský manuál






Další produkty a příručky pro Pro auto Longacre

Modely Typ Dokumentu
50370 Temperature Compensated Tire Pressure Gauge Uživatelský manuál   Longacre 50370 Temperature Compensated Tire Pressure Gauge User Manual, 3 stránky
73512 Valve Spring Tester Uživatelský manuál   Longacre 73512 Valve Spring Tester User Manual, 2 stránky
72594 Computerscales Uživatelský manuál   Longacre 72594 Computerscales User Manual, 2 stránky
Adjustable Fuel Pressure and Oil Pressure Sender I Uživatelský manuál   Longacre Adjustable Fuel Pressure and Oil Pressure Sender Instructions User Manual, 1 stránky
45215 Brake Line Uživatelský manuál   Longacre 45215 Brake Line User Manual, 1 stránky
78250 Camber Gauge Uživatelský manuál   Longacre 78250 Camber Gauge User Manual, 1 stránky
Air Tank_Filler Gauge Uživatelský manuál   Longacre Air Tank_Filler Gauge User Manual, 1 stránky
72700 Computerscales Wireless Accuset Uživatelský manuál   Longacre 72700 Computerscales Wireless Accuset User Manual, 2 stránky
73014 Engine Leak Down Tester Uživatelský manuál   Longacre 73014 Engine Leak Down Tester User Manual, 1 stránky
50692 Deluxe Memory Tire Pyrometer Uživatelský manuál   Longacre 50692 Deluxe Memory Tire Pyrometer User Manual, 4 stránky
78310 AccuLevel Pro (version 4) Uživatelský manuál   Longacre 78310 AccuLevel Pro (version 4) User Manual, 1 stránky
78110 Digital Kart Camber Gauge with AccuLevel (ve Uživatelský manuál   Longacre 78110 Digital Kart Camber Gauge with AccuLevel (version 2) User Manual, 1 stránky
78110 Digital Kart Camber Gauge with AccuLevel (ve Uživatelský manuál   Longacre 78110 Digital Kart Camber Gauge with AccuLevel (version 3) User Manual, 1 stránky
50365 Ultimate Digital Tire Pressure Gauge Uživatelský manuál   Longacre 50365 Ultimate Digital Tire Pressure Gauge User Manual, 2 stránky
78290 Digital Caster_Camber Gauge with AccuLevel ( Uživatelský manuál   Longacre 78290 Digital Caster_Camber Gauge with AccuLevel (version 2) User Manual, 2 stránky
22548 Spot Mirror Uživatelský manuál   Longacre 22548 Spot Mirror User Manual, 1 stránky
45218 Brake Line Re-circulator Uživatelský manuál   Longacre 45218 Brake Line Re-circulator User Manual, 1 stránky
78310 AccuLevel (version 2) Uživatelský manuál   Longacre 78310 AccuLevel (version 2) User Manual, 2 stránky
72625 Computerscales Uživatelský manuál   Longacre 72625 Computerscales User Manual, 2 stránky
72583 Computerscales Uživatelský manuál   Longacre 72583 Computerscales User Manual, 2 stránky