Module IpoCurve

Module IpoCurve

source code

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.


Warning:

Ipo curves store euler rotations as degrees/10.0 so 180.0 would be 18.0

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.
Variables
readonly dictionary ExtendTypes
The available IpoCurve extend types.
readonly dictionary InterpTypes
The available IpoCurve interpolation types.
Variables 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