User guide
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