[pitivi] timeline.track: add Interpolator.getInteriorKeyframes(), and TrackObject.getInterpolator() methods
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] timeline.track: add Interpolator.getInteriorKeyframes(), and TrackObject.getInterpolator() methods
- Date: Wed, 1 Jul 2009 06:48:18 +0000 (UTC)
commit 2b9328b1a8209a019cc444a3021fa73f8ae0b016
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Wed Jun 24 23:26:39 2009 -0700
timeline.track: add Interpolator.getInteriorKeyframes(), and TrackObject.getInterpolator() methods
pitivi/timeline/track.py | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index 8d66148..7669634 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -240,6 +240,11 @@ class Interpolator(Signallable, Loggable):
yield kf
yield self.end
+ def getInteriorKeyframes(self):
+ """Same as above but does not include start, or end points"""
+ for kf in sorted(self._keyframes):
+ yield kf
+
keyframes = property(getKeyframes)
class TrackObject(Signallable, Loggable):
@@ -297,6 +302,12 @@ class TrackObject(Signallable, Loggable):
if prop.name in wprops:
self.interpolators[prop] = Interpolator(self, sobj, prop)
+ def getInterpolator(self, property_name):
+ for prop, interpolator in self.interpolators.iteritems():
+ if property_name == prop.name:
+ return interpolator
+ return None
+
def release(self):
self._disconnectFromSignals()
self.releaseBin()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]