Beispiel #1
0
    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")
Beispiel #2
0
    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")
Beispiel #3
0
    def __init__(self, name):
        ENodeHandle.__init__(self, name)

        self.IsStatic = True

        self.__inputAttr = self.addInputAttribute("Input")

        self.__control = None
Beispiel #4
0
    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")
Beispiel #5
0
    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")
Beispiel #6
0
    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")
Beispiel #7
0
    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 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
Beispiel #9
0
    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")
Beispiel #10
0
    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")
Beispiel #11
0
    def __init__(self, name):
        ENodeHandle.__init__(self, name)

        self.__inputAttr = Image.open("crop.jpg")
        self.__outputAttr = self.addOutputAttribute("Output")
Beispiel #12
0
 def __init__(self, name):
     ENodeHandle.__init__(self, name)
     self.__inputAttr = self.addInputAttribute("InputA")
     self.__outputAttr = self.addOutputAttribute("Output")
Beispiel #13
0
    def __init__(self, name):
        ENodeHandle.__init__(self, name)

        self.addInputAttribute("Input")
        self.addOutputAttribute("Output")