Mercurial > MadButterfly
comparison pyink/frameline.py @ 1206:1d476b35dc79
Merge and move code of tracking max frame number to MBScene_dom_monitor
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 04 Jan 2011 10:08:02 +0800 |
parents | 213f03dbfc41 9d715956823a |
children | e55499f7505a |
comparison
equal
deleted
inserted
replaced
1205:1af64bcdfd7d | 1206:1d476b35dc79 |
---|---|
759 if key.left_tween is True: continue | 759 if key.left_tween is True: continue |
760 if key.idx == idx: | 760 if key.idx == idx: |
761 return key.right_tween_type | 761 return key.right_tween_type |
762 pass | 762 pass |
763 pass | 763 pass |
764 | |
765 ## Get the maximum frame number in a layer(frameline) | |
766 # Return the frame number | |
767 def max_frame(self): | |
768 keys = self._keys | |
769 if not keys: | |
770 return 0 | |
771 return keys[-1].idx | |
764 | 772 |
765 ## \bref Return range of blocks of conesequence frames (tweens). | 773 ## \bref Return range of blocks of conesequence frames (tweens). |
766 # | 774 # |
767 # Return range and type of tweens and key frames that is not start or stop | 775 # Return range and type of tweens and key frames that is not start or stop |
768 # of a tween. | 776 # of a tween. |