Get the latest Blender, older versions, or experimental builds.
Stay up-to-date with the new features in the latest Blender releases.
Access production assets and knowledge from the open movies.
Documentation on the usage and features in Blender.
Latest development updates, by Blender developers.
Guidelines, release notes and development docs.
A platform to collect and share results of the Blender Benchmark.
The yearly event that brings the community together.
Support core development with a monthly contribution.
Perform a single donation with more payment options available.
# 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.
def setName(ival, sval):
set name of frame.
@type sval: string
@param sval: the frame name.
def getName(ival):
Get name of frame.
@rtype: string
@return: the frame name.
def getMarked(ival):
@rtype: int|string
@return: the list of frame number or name.