Amazon VERSION 2.0V1 Guide de l'utilisateur Page 124

  • 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 123
124
Adding Importomatic Items Using a Script
Using the Alembic module as a reference, adding a new Alembic item in the Importomatic is achieved by registering
the callback:
ImportomaticAPI.AssetModule.RegisterCreateCallback( 'Add Alembic', AddAlembicGeometry)
where the menu option Add Alembic is added, which calls AddAlembicGeometry when selected.
The function AddAlembicGeometry can be called from a script in order to automate the population of Alembic files
but the node it returns has to be inserted into the output merge of the Importomatic, which is something the caller
does for you in the callback case above.
This is achieved using the insertNodeIntoOutputMerge function:
importomaticNode.insertNodeIntoOutputMerge( returnedNode, 'default' )
where the node is connected to the default port.
16 CREATING NEW IMPORTOMATIC MODULES | CUSTOM HIERARCHY STRUCTURES AND EXTENSIONS
Vue de la page 123
1 2 ... 119 120 121 122 123 124 125 126 127 128 129 ... 263 264

Commentaires sur ces manuels

Pas de commentaire