Module TimeLine
[hide private]
[frames] | no frames]

Source Code for Module TimeLine

 1  # Blender.Scene.TimeLine module 
 2   
 3  """ 
 4  The Blender.Scene.TimeLine submodule. 
 5   
 6  TimeLine 
 7  ======== 
 8   
 9  This module gives access to B{Scene TimeLine Contexts} in Blender. 
10   
11  Example:: 
12    import Blender 
13    from Blender import Scene 
14   
15    # Only the current scene has a radiosity context. 
16    # Naturally, any scene can be made the current one 
17    # with scene.makeCurrent() 
18   
19    scn = Scene.GetCurrent() 
20   
21    # this is the only way to access the radiosity object: 
22   
23    time_line = scn.getTimeLine () 
24    time_line.add (50) 
25    time_line.add (100) 
26    time_line.setName (50, 'first') 
27    time_line.setName (100, 'second') 
28     
29    Blender.Redraw(-1) 
30  """ 
31   
32 -class TimeLine:
33 """ 34 The TimeLine object 35 =================== 36 This object wraps the current Scene's time line context in Blender. 37 """ 38
39 - def add(ival):
40 """ 41 add new marker to time line 42 @type ival: int 43 @param ival: the frame number. 44 """
45
46 - def delete(ival):
47 """ 48 delete frame. 49 @type ival: int 50 @param ival: the frame number. 51 """
52
53 - def setName(ival, sval):
54 """ 55 set name of frame. 56 @type ival: int 57 @type sval: string 58 @param ival: the frame number. 59 @param sval: the frame name. 60 """
61
62 - def getName(ival):
63 """ 64 Get name of frame. 65 @type ival: int 66 @param ival: the frame number. 67 @rtype: string 68 @return: the frame name. 69 """
70
71 - def getMarked(ival):
72 """ 73 Get name of frame. 74 @type ival: int 75 @param ival: the frame number. 76 @rtype: int|string 77 @return: the list of frame number or name. 78 79 """
80