User guide
16 Creating New Importomatic
Modules
Importomatic Core Files
The Importomatic is a SuperTool which means that it wraps the functionality of multiple nodes into a single node
and presents it to the user through a customizable interface. The Node class extends NodegraphAPI.SuperTool
and sets up the underlying Node Graph, such as the Group and Merge nodes. The Editor class extends a
QtGui.QWidget, which displays the user interface in the Parameters tab.
New modules must register a class that extends AssetModule and, subsequently, override the functions that are
needed for a given task. In order to create a hierarchy of elements within the Importomatic list, each level in the
hierarchy has to extend from AssetTreeChild, which generates the corresponding element with the corresponding
name, type, icon, or similar.
Where to Place New Modules
New modules can be placed anywhere, as long as the path where the module lies is included in KATANA_RESOURCES.
Minimum Implementation
Only two files are needed to get a new module going:
1. A main asset file, which registers the callbacks and creates the relevant nodes and user interface.
2. An init file, which imports the module file and assigns the registration functions to the Importomatic plug-in
registry.
The following example shows how to implement a camera asset within the Importomatic. Doing so is technically
abusing the intended scope of the Importomatic, but is a useful demonstration.