Table of Contents

Class: IpoCurve ./Ipo.py

Wrapper for Blender IpoCurve

Attributes

bezierPoints

A list of BezierPoints (see class BezierPoint), defining the curve shape

Base Classes   
shadow.shadowEx
Methods   
__getitem__
__init__
__len__
__repr__
addBezier
eval
getExtrapolationType
getInterpolationType
setExtrapolationType
setInterpolationType
update
  __getitem__ 
__getitem__ ( self,  k )

Emulate a sequence of BezierPoints

  __init__ 
__init__ ( self,  object )

  __len__ 
__len__ ( self )

  __repr__ 
__repr__ ( self )

  addBezier 
addBezier (
        self,
        p,
        leftType='Auto',
        left=None,
        rightType=None,
        right=None,
        )

Adds a Bezier triple to the IpoCurve.

The following values are float tuples (x,y), denoting position of a control vertex:

p

The position of the Bezier point

left

The position of the leftmost handle

right

The position of the rightmost handle

leftType, rightType must be one of:

"Auto"

automatic handle calculation. In this case, left and right don't need to be specified

"Vect"

automatic split handle calculation. left and right are disregarded.

"Align"

Handles are aligned automatically. In this case, right does not need to be specified.

"Free"

Handles can be set freely - this requires both arguments left and right.

  eval 
eval ( self,  time )

Returns float value of curve self evaluated at time time which must be a float.

  getExtrapolationType 
getExtrapolationType ( self,  ipotype )

Returns the Extrapolation type - see also IpoCurve.ExtrapolationTypes

  getInterpolationType 
getInterpolationType ( self,  ipotype )

Returns the Interpolation type - see also IpoCurve.InterpolationTypes

  setExtrapolationType 
setExtrapolationType ( self,  ipotype )

Sets the interpolation type which must be one of IpoCurve.ExtrapolationTypes

Exceptions   
TypeError, "must be one of %s" % self.ExtrapolationTypes.keys()
  setInterpolationType 
setInterpolationType ( self,  ipotype )

Sets the interpolation type which must be one of IpoCurve.InterpolationTypes

Exceptions   
TypeError, "must be one of %s" % self.InterpolationTypes.keys()
  update 
update ( self,  noconvert=0 )


Table of Contents

This document was automatically generated on Mon Feb 25 13:52:14 2002 by HappyDoc version r1_5