Module IpoCurve
[frames | no frames]

Module IpoCurve

The Blender.IpoCurve submodule

New:

This module provides access to the IpoCurve data in Blender. An Ipo is composed of several IpoCurves, and an IpoCurve are composed of several BezTriples.

Example:
 import Blender
 ipo = Blender.Ipo.Get('ObIpo')  # retrieves an Ipo object
 ipo.name = 'ipo1'                              # change the Ipo's name
 icu = ipo[Blender.Ipo.OB_LOCX] # request X Location Ipo curve object
 if icu != None and len(icu.bezierPoints) > 0: # if curve exists and has BezTriple points
    val = icu[2.5]              # get the curve's value at time 2.5

Classes
IpoCurve This object gives access to generic data from all Ipo curves objects in Blender.

Variable Summary
readonly dictionary ExtendTypes: The available IpoCurve extend types.
readonly dictionary InterpTypes: The available IpoCurve interpolation types.

Variable Details

ExtendTypes

The available IpoCurve extend types.
  • CONST - curve is constant beyond first and last knots
  • EXTRAP - curve maintains same slope beyond first and last knots
  • CYCLIC - curve values repeat beyond first and last knots
  • CYCLIC_EXTRAP - curve values repeat beyond first and last knots, but while retaining continuity
Type:
readonly dictionary

InterpTypes

The available IpoCurve interpolation types.
  • CONST - curve remains constant from current BezTriple knot
  • LINEAR - curve is linearly interpolated between adjacent knots
  • BEZIER - curve is interpolated by a Bezier curve between adjacent knots
Type:
readonly dictionary

Generated by Epydoc 2.1 on Thu May 10 20:32:00 2007 http://epydoc.sf.net