Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TimeLine.py « doc « api2_2x « python « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0f45618976737d54e2864ef625fb9b225ca83b57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# 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
    @param ival: the frame number.
    @rtype: int|string
    @return: the list of frame number or name.

    """