User guide
122
Each class has to implement the setItemState function, which specifies the item name and type. If the item relates
to a particular node in the Node Graph the node interface can be exposed to the user within the Importomatic,
using the function getEditor.
Updating the Node Graph
Similar to the CameraAsset example in Creating a Tree Structure on the previous page, the scenegraph module
registers a call, which adds the geometry that, in this case, is the Group node, which encapsulates every node for this
module and the ScenegraphXml_In node.
A function that recursively reads the metadata parameters from the Group node, and builds the remaining nodes
representing the modifiers/look-files, is called at the end of the registered function and in functions that have an
effect on the Node Graph.
Additional Context Menu Actions
Delete item
Declare in the class if the item can be deleted, for instance:
def isDeletable( self ):
return True
16 CREATING NEW IMPORTOMATIC MODULES | CUSTOM HIERARCHY STRUCTURES AND EXTENSIONS