Amazon VERSION 2.0V1 Uživatelská příručka Strana 124

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 264
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 123
1 2 ... 119 120 121 122 123 124 125 126 127 128 129 ... 263 264

Komentáře k této Příručce

Žádné komentáře