# HG changeset patch # User Thinker K.F. Li # Date 1302452925 -28800 # Node ID 8e8c9ab3818f1e981bbcad70c409b2bd64ae2788 # Parent 60f2c9a24cdb6da1413962bd12347a233d2b2477 Add documentation diff -r 60f2c9a24cdb -r 8e8c9ab3818f pyink/domview.py --- a/pyink/domview.py Mon Apr 11 00:05:25 2011 +0800 +++ b/pyink/domview.py Mon Apr 11 00:28:45 2011 +0800 @@ -665,6 +665,8 @@ return use_node + ## \brief Remember current frame and layer on the scenes node. + # def remember_current_frame(self, layer_idx, frame_idx): if not isinstance(layer_idx, int): raise TypeError, 'layer index should be a integer' @@ -678,6 +680,8 @@ timeline_scenes.setAttribute('cur_frame', str(frame_idx)) pass + ## \brief Get current frame and layer from the scenes node. + # def get_current_frame(self): timeline_name = self.get_current_timeline() timeline = self._cur_comp.get_timeline(timeline_name) diff -r 60f2c9a24cdb -r 8e8c9ab3818f pyink/domview_ui.py --- a/pyink/domview_ui.py Mon Apr 11 00:05:25 2011 +0800 +++ b/pyink/domview_ui.py Mon Apr 11 00:28:45 2011 +0800 @@ -882,10 +882,14 @@ max_frame = self._dom.get_max_frame() return max_frame + ## \brief Remember current frame and layer on the scenes node. + # def remember_current_frame(self, layer_idx, frame_idx): self._dom.remember_current_frame(layer_idx, frame_idx) pass + ## \brief Get current frame and layer from the scenes node. + # def get_current_frame(self): return self._dom.get_current_frame()