Amazon VERSION 2.0V1 Guide de l'utilisateur Page 23

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 264
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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 |
Vue de la page 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 263 264

Commentaires sur ces manuels

Pas de commentaire