예제 #1
0
파일: coralApp.py 프로젝트: ljkart/coraline
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
예제 #2
0
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
예제 #3
0
파일: coralApp.py 프로젝트: ljkart/coraline
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)
예제 #4
0
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)