Amazon VERSION 2.0V1 Guía de usuario Pagina 101

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 264
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 100
101
<group_parameter>
<string_parameter name='name' value=''/>
<number_parameter name='value' value="1"/>
</group_parameter>""")
self.addInputPort("mog")
self.addInputPort("dog")
self.addOutputPort("out")
merge = NodegraphAPI.CreateNode('Merge', self)
self.getSendPort("mog").connect(
merge.addInputPort('i0'))
self.getSendPort("dog").connect(
merge.addInputPort('i1'))
self.getReturnPort("out").connect(
merge.getOutputPortByIndex(0))
NodegraphAPI.SetNodePosition(merge, (0,0))
def upgrade(self, force=False):
print ("upgrade() has been called.")
Editor
The Editor class declares the GUI which listens to change events and syncs itself automatically when the internal
network changes. This is particularly important for undo/redo.
See the following example of an Editor.py file:
"""
Module containing the C{L{HelloSuperToolEditor}} class.
"""
from Katana import QtCore, QtGui, UI4, QT4FormWidgets,\
Utils
# Class Definitions ---------------------------------------
class HelloSuperToolEditor(QtGui.QWidget):
"""
Example of a Super Tool editing widget that works on two
parameters of a given Super Tool node.
"""
# Initializer -----------------------------------------
def __init__(self, parent, node):
"""
Initializes an instance of the class.
13 GROUPS, MACROS, AND SUPER TOOLS | SUPER TOOLS
Vista de pagina 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 263 264

Comentarios a estos manuales

Sin comentarios