Amazon VERSION 2.0V1 Guia do Utilizador Página 23

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 264
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 22
23
Creating New Flavors
To add a new flavor, enter the following in the Python tab:
NodegraphAPI.Flavor.AddNodeFlavor( 'nodeName', 'flavorName' )
For example, to add the node type Render to a flavor called myRenderFlavor, enter the following:
NodegraphAPI.Flavor.AddNodeFlavor( 'Render', 'myRenderFlavor' )
NOTE: If you want to completely customize node creation, you can also create a class derived from
NodegraphAPI.NodeDelegateManager.SuperDelegate with a function called processNodeCreate()
with one parameter that receives a newly created node:
class MySuperDelegate(NodegraphAPI.NodeDelegateManager.SuperDelegate):
def processNodeCreate(self, node):
print("Processing new node %s..." % node)
NodegraphAPI.NodeDelegateManager.RegisterSuperDelegate(MySuperDelegate())
Updating Node Colors
New rules and flavors, created and applied by entering them in the Python tab, are not retrospectively applied to
existing nodes in the Node Graph. To apply changes to existing nodes, choose the Color Nodes shelf item from the
main menu.
4 CUSTOM NODE COLORS |
Vista de página 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 263 264

Comentários a estes Manuais

Sem comentários