Amazon VERSION 2.0V1 Guia do Utilizador Página 100

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 264
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 99
100
Typically there is a third Python script for common shared utility functions needed by both the nodes and UI
scripts.
Registering and Initialization
The Plug-in Registry is used to register new Super Tools. The registration is performed in the init.py (at base level)
which is also, typically, the place where we check the Katana version to make sure a plug-in is supported.
The following example shows the plug-in registration containing separate calls for the node and editor:
import Katana
import logging
log = logging.getLogger('HelloSuperTool')
try:
import v1 as HelloSuperTool
except Exception as exception:
log.exception('Error importing Super Tool Python
package: %s' % str(exception))
else:
PluginRegistry = [("SuperTool", 2, "HelloSuperTool",
(HelloSuperTool.HelloSuperToolNode,
HelloSuperTool.GetEditor))]
The init.py file inside the v1 folder then provides Katana with a function to receive the editor:
from Node import HelloSuperToolNode
def GetEditor():
from Editor import HelloSuperToolEditor
return HelloSuperToolEditor
Node
The Node class declares internal node graph functionality using the NodegraphAPI.
See the following example of a Node.py file:
from Katana import NodegraphAPI, Utils, PyXmlIO as XIO, UniqueName
class HelloSuperToolNode(NodegraphAPI.SuperTool):
def __init__(self):
self.hideNodegraphGroupControls()
self.getParameters().parseXML("""
13 GROUPS, MACROS, AND SUPER TOOLS | SUPER TOOLS
Vista de página 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 263 264

Comentários a estes Manuais

Sem comentários

Salton-inc MEPE123BT Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Kaffeemaschinen Salton-inc MEPE123BT.
Wir stellen 1 PDF-Handbücher Salton-inc MEPE123BT zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung






Weitere Produkte und Handbücher für Kaffeemaschinen Salton-inc

Modelle Dokumententyp
FC-1205 Bedienungsanleitung   Salton, Inc FC-1205 User Manual, 3 Seiten
JVPM1B Bedienungsanleitung   Salton, Inc JVPM1B User Manual, 16 Seiten
MEVA10DB Bedienungsanleitung    Salton, Inc MEVA10DB Manuel d'utilisation, 18 Seiten
MEFB4W Bedienungsanleitung    Salton, Inc MEFB4W Manuel d'utilisation, 22 Seiten
MESC10 Bedienungsanleitung   Salton, Inc MESC10 User Manual, 8 Seiten
MEFB1W Bedienungsanleitung   Salton, Inc MEFB1W User Manual, 8 Seiten
MEPE123W Bedienungsanleitung    Salton, Inc MEPE123W Manuel d'utilisation, 42 Seiten
ME5B Bedienungsanleitung   Salton, Inc ME5B User Manual, 8 Seiten
MEMB1W Bedienungsanleitung   Salton, Inc MEMB1W User Manual, 12 Seiten