changeset 1187:9d715956823a

Update the maxframeline
author wycc
date Tue, 04 Jan 2011 01:13:23 +0800
parents ca4e89cc464b
children 1d476b35dc79
files pyink/frameline.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/frameline.py	Mon Jan 03 08:41:31 2011 +0800
+++ b/pyink/frameline.py	Tue Jan 04 01:13:23 2011 +0800
@@ -764,6 +764,11 @@
 		return key.right_tween_type
 	    pass
 	pass
+    ## Get the maximum frame number in a layer(frameline)
+    # Return the frame number
+    def max_frame(self):
+	if len(self._keys) == 0: return 0
+        return self._keys[len(self._keys)-1].idx
 
     ## \bref Return range of blocks of conesequence frames (tweens).
     #