def __init__(self, name): ENodeHandle.__init__(self, name) #self.__size = 5 self.__size = self.addProperty("Size", 5) self.__inputAttr = self.addInputAttribute("Input") self.__outputAttr = self.addOutputAttribute("Output")
def __init__(self, name): ENodeHandle.__init__(self, name) self.__width = self.addProperty("width", 427) self.__height = self.addProperty("height", 240) self.__color = self.addProperty("color", (255,100,100)) self.__outputAttr = self.addOutputAttribute("Output")
def __init__(self, name): ENodeHandle.__init__(self, name) self.IsStatic = True self.__inputAttr = self.addInputAttribute("Input") self.__control = None
def __init__(self): ENodeHandle.__init__(self) self.addProperty(self.EProperty.kTypeFloat, "Param 1", 10.0) self.addProperty(self.EProperty.kTypeList, "Param 2", [10.0, 20.0]) self.addProperty(self.EProperty.kTypeList, "Param 3", [10.0, 20.0, 30.0]) self.addProperty(self.EProperty.kTypeString, "Param 4", '<path_to_file>'.upper()) self.__inputAttr = self.addInputAttribute("Input") self.__outputAttr = self.addOutputAttribute("Output")
def __init__(self): ENodeHandle.__init__(self) self.addPropertyAttribute("Param 1", EAttribute.kTypeFloat, 10.0) self.addPropertyAttribute("Param 2", EAttribute.kTypeVector2d, [10.0, 20.0]) self.addPropertyAttribute("Param 3", EAttribute.kTypeVector3d, [10.0, 20.0, 30.0]) self.addPropertyAttribute("Param 4", EAttribute.kTypeString, '<path_to_file>'.upper()) self.__inputAttr = self.addInputAttribute("Input") self.__outputAttr = self.addOutputAttribute("Output")
def __init__(self): ENodeHandle.__init__(self) self.addPropertyAttribute("Param 1", EAttribute.kTypeFloat, 10.0) self.addPropertyAttribute("Param 2", EAttribute.kTypeVector3d, [10.0, 20.0]) self.__inputAttrA = self.addInputAttribute("InputA") self.__inputAttrB = self.addInputAttribute("InputB") self.__outputAttrA = self.addOutputAttribute("OutputA") self.__outputAttrB = self.addOutputAttribute("OutputB")
def createNode(self, name=None): if name in self.__pluginManager.lsPlugins(): nodeHandle = self.__pluginManager.loadPlugin(name) else: nodeHandle = ENodeHandle() nodeHandle.Name = name self.addNode(nodeHandle) return nodeHandle
def __init__(self): ENodeHandle.__init__(self) self.addProperty(self.EProperty.kTypeFloat, "Param 1", 10.0) self.addProperty(self.EProperty.kTypeList, "Param 2", [10.0, 20.0]) self.__inputAttrA = self.addInputAttribute("InputA") self.__inputAttrB = self.addInputAttribute("InputB") self.__outputAttrA = self.addOutputAttribute("OutputA") self.__outputAttrB = self.addOutputAttribute("OutputB")
def __init__(self): ENodeHandle.__init__(self) self.IsContainer = True self.addPropertyAttribute("Param 1", EAttribute.kTypeFloat, 10.0) self.addPropertyAttribute("Param 2", EAttribute.kTypeList, [10.0, 20.0, 30.0]) self.addPropertyAttribute("Param 3", EAttribute.kTypeString, '<path_to_file>'.upper()) self.__inputAttrA = self.addInputAttribute("InputA") self.__inputAttrB = self.addInputAttribute("InputB") self.__outputAttr = self.addOutputAttribute("Output")
def __init__(self, name): ENodeHandle.__init__(self, name) self.__inputAttr = Image.open("crop.jpg") self.__outputAttr = self.addOutputAttribute("Output")
def __init__(self, name): ENodeHandle.__init__(self, name) self.__inputAttr = self.addInputAttribute("InputA") self.__outputAttr = self.addOutputAttribute("Output")
def __init__(self, name): ENodeHandle.__init__(self, name) self.addInputAttribute("Input") self.addOutputAttribute("Output")