Exemple #1
0
 def _deleteNodes(self, nodesName):
     nodes = [] 
     for nodeName in nodesName:
         node = coralApp.findNode(nodeName)
         if node:
             nodes.append(node)
     
     if nodes:
         coralApp.deleteNodes(nodes)
Exemple #2
0
    def doIt(self):
        collapsedNodeName = self.argAsString("collapsedNode")

        collapsedNode = coralApp.findNode(collapsedNodeName)
        if collapsedNode:
            if collapsedNode.className() in collapser.CollapserData.collapsableNodeNames:
                coralApp.explodeCollapsedNode(collapsedNode)
            else:
                coralApp.logDebug("ExplodeCollapsedNode Command: input node must be of type CollapsedNode")
Exemple #3
0
    def _deleteNodes(self, nodesName):
        nodes = []
        for nodeName in nodesName:
            node = coralApp.findNode(nodeName)
            if node:
                nodes.append(node)

        if nodes:
            coralApp.deleteNodes(nodes)
 def doIt(self):
     from collapsedNode import CollapsedNode
     collapsedNodeName = self.argAsString("collapsedNode")
     
     collapsedNode = coralApp.findNode(collapsedNodeName)
     if collapsedNode:
         if collapsedNode.__class__ is CollapsedNode:
             coralApp.explodeCollapsedNode(collapsedNode)
         else:
             coralApp.logDebug("ExplodeCollapsedNode Command: input node must be of type CollapsedNode")
Exemple #5
0
 def doIt(self):
     nodes = eval(self.argAsString("nodes"))
     
     nodeNames = nodes
     nodes = [] 
     for nodeName in nodeNames:
         node = coralApp.findNode(nodeName)
         if node:
             nodes.append(node)
     
     coralApp.collapseNodes(nodes)
Exemple #6
0
    def doIt(self):
        nodes = eval(self.argAsString("nodes"))

        nodeNames = nodes
        nodes = []
        for nodeName in nodeNames:
            node = coralApp.findNode(nodeName)
            if node:
                nodes.append(node)

        coralApp.collapseNodes(nodes)
Exemple #7
0
    def doIt(self):
        nodes = eval(self.argAsString("nodes"))
        nodeNames = nodes
        nodes = []
        for nodeName in nodeNames:
            node = coralApp.findNode(nodeName)
            if node:
                nodes.append(node)

        collapser.setCollapsedNodeClassName("CollapsedExecutableNode")
        coralApp.collapseNodes(nodes)
        collapser.setCollapsedNodeClassName("CollapsedNode")
Exemple #8
0
    def doIt(self):
        collapsedNodeName = self.argAsString("collapsedNode")

        collapsedNode = coralApp.findNode(collapsedNodeName)
        if collapsedNode:
            if collapsedNode.className(
            ) in collapser.CollapserData.collapsableNodeNames:
                coralApp.explodeCollapsedNode(collapsedNode)
            else:
                coralApp.logDebug(
                    "ExplodeCollapsedNode Command: input node must be of type CollapsedNode"
                )
Exemple #9
0
    def doIt(self):
        nodes = eval(self.argAsString("nodes"))
        nodeNames = nodes
        nodes = []
        for nodeName in nodeNames:
            node = coralApp.findNode(nodeName)
            if node:
                nodes.append(node)

        collapser.setCollapsedNodeClassName("CollapsedExecutableNode")
        coralApp.collapseNodes(nodes)
        collapser.setCollapsedNodeClassName("CollapsedNode")
Exemple #10
0
 def doIt(self):
     className = self.argAsString("className")
     name = self.argAsString("name")
     parentNode = self.argAsString("parentNode")
     
     newNode = None
     
     parentNode = coralApp.findNode(parentNode)
     if parentNode:
         newNode = coralApp.createNode(className, name, parentNode)
         
         if newNode:
             specializationPreset = self.argAsString("specializationPreset")
             if specializationPreset:
                 newNode.enableSpecializationPreset(specializationPreset)
             
             self.setResultString(newNode.fullName())
             
     if newNode is None:
         coralApp.logDebug("CreateNode Command: failed to create new node.")
Exemple #11
0
    def doIt(self):
        className = self.argAsString("className")
        name = self.argAsString("name")
        parentNode = self.argAsString("parentNode")

        newNode = None

        parentNode = coralApp.findNode(parentNode)
        if parentNode:
            newNode = coralApp.createNode(className, name, parentNode)

            if newNode:
                specializationPreset = self.argAsString("specializationPreset")
                if specializationPreset:
                    newNode.enableSpecializationPreset(specializationPreset)

                self.setResultString(newNode.fullName())

        if newNode is None:
            coralApp.logDebug("CreateNode Command: failed to create new node.")
Exemple #12
0
    def doIt(self):
        className = self.argAsString("className")
        name = self.argAsString("name")
        parentNode = self.argAsString("parentNode")
        input = self.argAsBool("input")
        output = self.argAsBool("output")

        newAttr = None

        parentNode = coralApp.findNode(parentNode)
        if parentNode:
            newAttr = coralApp.createAttribute(className, name, parentNode, input, output)
            if newAttr:
                specializationOverride = self.argAsString("specializationOverride")
                if specializationOverride != "" and specializationOverride != "none":
                    newAttr.setSpecializationOverride(specializationOverride)

                self.setResultString(newAttr.fullName())

        if newAttr is None:
            coralApp.logDebug("CreateAttribute Command: failed to create new attribute.")
Exemple #13
0
    def doIt(self):
        className = self.argAsString("className")
        name = self.argAsString("name")
        parentNode = self.argAsString("parentNode")
        input = self.argAsBool("input")
        output = self.argAsBool("output")

        newAttr = None

        parentNode = coralApp.findNode(parentNode)
        if parentNode:
            newAttr = coralApp.createAttribute(className, name, parentNode,
                                               input, output)
            if newAttr:
                specializationOverride = self.argAsString(
                    "specializationOverride")
                if specializationOverride != "" and specializationOverride != "none":
                    newAttr.setSpecializationOverride(specializationOverride)

                self.setResultString(newAttr.fullName())

        if newAttr is None:
            coralApp.logDebug(
                "CreateAttribute Command: failed to create new attribute.")