diff options
author | Joilnen Leite <joilnen.leite@gmail.com> | 2005-08-05 22:02:49 +0400 |
---|---|---|
committer | Joilnen Leite <joilnen.leite@gmail.com> | 2005-08-05 22:02:49 +0400 |
commit | 1b0cd9340da7ad1496c0a2bc4fe174f3cda7a1d5 (patch) | |
tree | 6e083761605cc53fa46f2b67cc116ed19a36cdaa /source/blender/python/api2_2x/doc/TimeLine.py | |
parent | d033b6df7fd13cb559aba3ea01c6a4a7211d3bfe (diff) |
doc to bpy TimeLine support
.
Diffstat (limited to 'source/blender/python/api2_2x/doc/TimeLine.py')
-rw-r--r-- | source/blender/python/api2_2x/doc/TimeLine.py | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/doc/TimeLine.py b/source/blender/python/api2_2x/doc/TimeLine.py new file mode 100644 index 00000000000..62970c3e449 --- /dev/null +++ b/source/blender/python/api2_2x/doc/TimeLine.py @@ -0,0 +1,81 @@ +# Blender.Scene.TimeLine module + +""" +The Blender.Scene.TimeLine submodule. + +TimeLine +===== + +This module gives access to B{Scene TimeLine Contexts} in Blender. + +Example:: + import Blender + from Blender import Scene + + # Only the current scene has a radiosity context. + # Naturally, any scene can be made the current one + # with scene.makeCurrent() + + scn = Scene.GetCurrent() + + # this is the only way to access the radiosity object: + + time_line = scn.getTimeLine () + time_line.add (50) + time_line.add (100) + time_line.setName (50, 'first') + time_line.setName (100, 'second') + + Blender.Redraw(-1) +""" + +class TimeLine: + """ + The TimeLine object + ==================== + This object wraps the current Scene's time line context in Blender. + """ + + def add(ival): + """ + add new marker to time line + @type ival: int + @param ival: the frame number. + """ + + def delete(ival): + """ + delete frame. + @type ival: int + @param ival: the frame number. + """ + + def setName(ival, sval): + """ + set name of frame. + @type ival: int + @type sval: string + @param ival: the frame number. + @param sval: the frame name. + """ + + def getName(ival): + """ + Get name of frame. + @type ival: int + @param ival: the frame number. + @rtype: string + @return: the frame name. + """ + + def getMarked(ival): + """ + Get name of frame. + @type ival: int + @type sval: string + @param ival: the frame number. + @rtype: int|string + @return: the list of frame number or name. + + """ + |