Пример #1
0
    def setSelected(self, event):
        """
		Selects this track
		"""
        SplineTrack.setSelected(self, event)
        if event:
            self.showKeyframe()
    def setSelected(self, event):
        """
		Selects this track
		"""
        SplineTrack.setSelected(self, event)
        if event:
            self.showKeyframe()
Пример #3
0
    def __getstate__(self):
        """
		Return the dict that is to be pickled to disk
		"""
        odict = SplineTrack.__getstate__(self)
        #n=0
        #pos=0
        #for key in ["closed","maintainUpDirection"]:
        #    odict[key]=self.__dict__[key]
        return odict
    def __getstate__(self):
        """
		Return the dict that is to be pickled to disk
		"""
        odict = SplineTrack.__getstate__(self)
        # n=0
        # pos=0
        # for key in ["closed","maintainUpDirection"]:
        #    odict[key]=self.__dict__[key]
        return odict
Пример #5
0
    def __init__(self, name, parent, **kws):
        self.nameColor = (255, 51, 153)
        self.fg = (0, 0, 0)
        self.bg = self.nameColor

        # A flag that indicates that keyframe track is similiar to
        # camera path track in that it defines the camera movement
        self.trackType = "DEFINE_CAMERA"

        kws["height"] = 80

        SplineTrack.__init__(self, name, parent, **kws)

        self.paintOverlay = 1
        self.overlayColor = ((0, 255, 0), 25)

        self.itemClass = kws.get("item", KeyframePoint)
        dt = UrmasDropTarget(self, "Keyframe")
        self.SetDropTarget(dt)
        lib.messenger.connect(None, "set_camera", self.onSetCamera)
        lib.messenger.connect(None, "show_time_pos", self.onDisableOverlay)
    def onDown(self, event):
        """
		Item is clicked
		"""
        ret = SplineTrack.onDown(self, event)
        if self.overlayItem and self.overlayPos != -1:
            lib.messenger.send(None, "set_timeslider_value", self.overlayPos * 10.0)
            lib.messenger.send(None, "render_time_pos", self.overlayPos)
            self.paintTrack()
            self.Refresh()
            return ret
        return ret
    def __init__(self, name, parent, **kws):
        self.nameColor = (255, 51, 153)
        self.fg = (0, 0, 0)
        self.bg = self.nameColor

        # A flag that indicates that keyframe track is similiar to
        # camera path track in that it defines the camera movement
        self.trackType = "DEFINE_CAMERA"

        kws["height"] = 80

        SplineTrack.__init__(self, name, parent, **kws)

        self.paintOverlay = 1
        self.overlayColor = ((0, 255, 0), 25)

        self.itemClass = kws.get("item", KeyframePoint)
        dt = UrmasDropTarget(self, "Keyframe")
        self.SetDropTarget(dt)
        lib.messenger.connect(None, "set_camera", self.onSetCamera)
        lib.messenger.connect(None, "show_time_pos", self.onDisableOverlay)
Пример #8
0
    def onDown(self, event):
        """
		Item is clicked
		"""
        ret = SplineTrack.onDown(self, event)
        if self.overlayItem and self.overlayPos != -1:
            lib.messenger.send(None, "set_timeslider_value",
                               self.overlayPos * 10.0)
            lib.messenger.send(None, "render_time_pos", self.overlayPos)
            self.paintTrack()
            self.Refresh()
            return ret
        return ret