Beispiel #1
0
    def updateMembers(self):
        super(RenderObject, self).updateMembers()

        self.setMember('ep1', self.ep1)
        self.setMember(Geometry.getTypeName(), self.geometry)
        self.setMember(Shader.getTypeName(), self.shaders)
        self.setMember('condition', self.condition)
        self.setMember('instanced', self.instanced)
        self.setMember(Scriptable.getTypeName(), self.script)
Beispiel #2
0
    def _initMembersDict(self):
        super(RenderObject, self)._initMembersDict()

        # self._members['motionblur']     = [bool, False]
        # self._members['range']          = [intlist, [-1,-1]]
        self._members['ep1']                    = [float, 1.0]
        self._members[Geometry.getTypeName()]   = [Geometry, []]
        self._members[Shader.getTypeName()]     = [Shader, []]
        self._members['condition']              = [str, '']
        self._members['color']                  = [floatlist, []]
        self._members['instanced']              = [bool, False]
        self._members[Scriptable.getTypeName()] = [Scriptable, None]
Beispiel #3
0
    def __init__(self, *args, **kwargs):
        super(RenderObject,self).__init__(*args, **kwargs)

        self.data         = []
        self.multiobject  = False

        self.ep1        = self.getMember('ep1')
        self.geometry   = self.getMember(Geometry.getTypeName())
        self.shaders    = self.getMember(Shader.getTypeName())
        self.condition  = self.getMember('condition')
        self.color      = self.getMember('color')
        self.instanced  = self.getMember('instanced')
        self.script     = self.getMember(Scriptable.getTypeName())