def finalize(): _coral.setCallback("node_created", None) _coral.setCallback("node_addNode", None) _coral.setCallback("node_removeNode", None) _coral.setCallback("node_addInputAttribute", None) _coral.setCallback("node_addOutputAttribute", None) _coral.setCallback("node_deleteIt", None) _coral.setCallback("node_removeAttribute", None) _coral.setCallback("node_connectionChanged", None) _coral.setCallback("attribute_created", None) _coral.setCallback("attribute_connectTo", None) _coral.setCallback("attribute_disconnectInput", None) _coral.setCallback("attribute_deleteIt", None) _coral.setCallback("attribute_specialization", None) _coral.setCallback("attribute_valueChanged", None) _coral.setCallback("nestedObject_setName", None) CoralAppData.rootNode.deleteIt() CoralAppData.rootNode = None
def init(): CoralAppData.rootNode = RootNode("root") _initCollapsedNodes() import builtinCommands loadPluginModule(builtinCommands) import builtinNodes loadPluginModule(builtinNodes) _coral.setCallback("node_created", _node_created) _coral.setCallback("node_addNode", _node_addNode) _coral.setCallback("node_removeNode", _node_removeNode) _coral.setCallback("attribute_created", _attribute_created) _coral.setCallback("attribute_connectTo", _attribute_connectTo) _coral.setCallback("attribute_disconnectInput", _attribute_disconnectInput) _coral.setCallback("node_addInputAttribute", _node_addInputAttribute) _coral.setCallback("node_addOutputAttribute", _node_addOutputAttribute) _coral.setCallback("node_removeAttribute", _node_removeAttribute) _coral.setCallback("node_deleteIt", _node_deleteIt) _coral.setCallback("node_connectionChanged", _node_connectionChanged) _coral.setCallback("attribute_deleteIt", _attribute_deleteIt) _coral.setCallback("nestedObject_setName", _nestedobject_setName) _coral.setCallback("attribute_specialization", _attribute_specialization) if os.environ.has_key("CORAL_PLUGINS_PATH"): path = os.environ["CORAL_PLUGINS_PATH"] paths = path.split(os.pathsep) for path in paths: addAutoLoadPath(path)