Module Key :: Class KeyBlock
[frames | no frames]

Class KeyBlock


The KeyBlock object

Each Key object has a list of KeyBlocks attached, each KeyBlock representing a keyframe.
Method Summary
  getData()
Get the data of a KeyBlock, as a list of data items.

Instance Variable Summary
float curval: Current value of the corresponding IpoCurve.
varies data: The data of the KeyBlock (see getData).
string name: The name of the Keyblock.
float pos: The position of the keyframe.
float slidermax: The maximum value for the action slider.
float slidermin: The minimum value for the action slider.
string vgroup: The assigned VGroup for the Key Block.

Method Details

getData()

Get the data of a KeyBlock, as a list of data items. Each item will have a different data type depending on the type of this Key.
  • Mesh keys have a list of NMVert objects in the data block.
  • Lattice keys have a list of BPoints in the data block. These don't have corresponding Python objects yet, so each BPoint is represented using a list of three floating-point numbers (the coordinate for each lattice vertex).
  • Curve keys return either a list of BezTriple objects in the data if the curve is a Bezier curve, otherwise it returns lists of three floats for each NURB or poly coordinate.

Instance Variable Details

curval

Current value of the corresponding IpoCurve. Read-only.
Type:
float

data

The data of the KeyBlock (see getData). This attribute is read-only.
Type:
varies

name

The name of the Keyblock. Truncated to 32 characters.
Type:
string

pos

The position of the keyframe.
Type:
float

slidermax

The maximum value for the action slider. Value is clamped to the range [-10.0,10.0].
Type:
float

slidermin

The minimum value for the action slider. Value is clamped to the range [-10.0,10.0].
Type:
float

vgroup

The assigned VGroup for the Key Block.
Type:
string

Generated by Epydoc 2.1 on Sun Feb 11 13:30:19 2007 http://epydoc.sf.net