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): 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")
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")
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)
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")
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" )
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.")
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.")
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.")