[pitivi] timeline/track.py: implement getTrackObjectsGroupedByLayer



commit 064530946ce90edaed883268a701026eed58d3b7
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Thu Mar 4 17:44:59 2010 -0800

    timeline/track.py: implement getTrackObjectsGroupedByLayer

 pitivi/timeline/track.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/track.py b/pitivi/timeline/track.py
index bf90604..cf3658b 100644
--- a/pitivi/timeline/track.py
+++ b/pitivi/timeline/track.py
@@ -1001,3 +1001,9 @@ class Track(Signallable, Loggable):
         del self.transitions[a, b]
         self.emit("transition-removed", transition)
 
+    def getTrackObjectsGroupedByLayer(self):
+        layers = [[] for x in xrange(0, self.max_priority + 1)]
+        for track_object in self.track_objects:
+            layers[int(track_object.priority)].append(track_object)
+        return layers
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]