Module Ipo :: Class IpoCurve
[frames | no frames]

Class IpoCurve


The IpoCurve object

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

Important Notes for Rotation Ipo Curves:

For the rotation Ipo curves, the y values for points are in units of 10 degrees. For example, 45.0 degrees is stored as 4.50 degrees. These are the same numbers you see in the Transform Properties pop-up menu ( NKey ) in the IPO Curve Editor window. Positive rotations are in a counter-clockwise direction, following the standard convention.
Method Summary
None addBezier(coordlist)
Adds a Bezier point to a curve.
None delBezier(index)
Deletes a Bezier point from a curve.
float evaluate(time)
Compute the value of the Ipo curve at a particular time.
string getExtrapolation()
Gets the extend mode of the curve.
string getInterpolation()
Gets the interpolation type of the curve.
string getName()
Returns the name of the Ipo curve.
list of BezTriples getPoints()
Returns all the points of the Ipo curve.
None recalc()
Recomputes the curve after changes to control points.
None setExtrapolation(extendmode)
Sets the extend mode of the curve.
None setInterpolation(interpolationtype)
Sets the interpolation type of the curve.

Instance Variable Summary
list bezierPoints: The list of the curve's bezier points.
int driver: Status of the driver.
int driverChannel: Object channel used to drive the Ipo curve.
Blender Object or None driverObject: Object used to drive the Ipo curve.
string name: The IpoCurve data name.

Method Details

addBezier(coordlist)

Adds a Bezier point to a curve.
Parameters:
coordlist - the x and y coordinates of the new Bezier point.
           (type=tuple of (at least) 2 floats)
Returns:
None
           (type=None)

delBezier(index)

Deletes a Bezier point from a curve.
Parameters:
index - the index of the Bezier point. Negative values index from the end of the list.
           (type=integer)
Returns:
None
           (type=None)

evaluate(time)

Compute the value of the Ipo curve at a particular time.
Parameters:
time - value along the X axis
           (type=float)
Returns:
the Y value of the curve at the given time
           (type=float)

getExtrapolation()

Gets the extend mode of the curve.
Returns:
the extend mode of the curve. Can be Constant, Extrapolation, Cyclic or Cyclic_extrapolation.
           (type=string)

getInterpolation()

Gets the interpolation type of the curve.
Returns:
the interpolation type of the curve. Can be Constant, Bezier, or Linear.
           (type=string)

getName()

Returns the name of the Ipo curve. This name can be:
  1. Camera Ipo: Lens, ClSta, ClEnd, Apert, FDist.
  2. Material Ipo: R, G, B, SpecR, SpecG, SpecB, MirR, MirG, MirB, Ref, Alpha, Emit, Amb, Spec, Hard, SpTra, Ior, Mode, HaSize, Translu, RayMir, FresMir, FresMirI, FresTra, FresTraI, TraGlow, OfsX, OfsY, OfsZ, SizeX, SizeY, SizeZ, texR, texG, texB, DefVar, Col, Nor, Var, Disp.
  3. Object Ipo: LocX, LocY, LocZ, dLocX, dLocY, dLocZ, RotX, RotY, RotZ, dRotX, dRotY, dRotZ, SizeX, SizeY, SizeZ, dSizeX, dSizeY, dSizeZ, Layer, Time, ColR, ColG, ColB, ColA, FStreng, FFall, Damping, RDamp, Perm.
  4. Lamp Ipo: Energ, R, G, B, Dist, SpoSi, SpoBl, Quad1, Quad2, HaInt.
  5. World Ipo: HorR, HorG, HorB, ZenR, ZenG, ZenB, Expos, Misi, MisDi, MisSta, MisHi, StaR, StaG, StaB, StarDi, StarSi, OfsX, OfsY, OfsZ, SizeX, SizeY, SizeZ, TexR, TexG, TexB, DefVar, Col, Nor, Var.
  1. World Ipo: HorR, HorG, HorB, ZenR, ZenG, ZenB, Expos, Misi, MisDi, MisSta, MisHi, StarR, StarB, StarG, StarDi, StarSi, OfsX, OfsY, OfsZ,i SizeX, SizeY, SizeZ, texR, texG, texB, DefVar, Col, Nor, Var.
  2. Texture Ipo: NSize, NDepth, NType, Turb, Vnw1, Vnw2, Vnw3, Vnw4, MinkMExp, DistM, ColT, iScale, DistA, MgType, MgH, Lacu, Oct, MgOff, MgGain, NBase1, NBase2.
  3. Curve Ipo: Speed.
  4. Action Ipo: LocX, LocY, LocZ, SizeX, SizeY, SizeZ, QuatX, QuatY, QuatZ, QuatW.
  5. Sequence Ipo: Fac.
  6. Constraint Ipo: Inf.
Returns:
the name of the Ipo curve.
           (type=string)

getPoints()

Returns all the points of the Ipo curve.
Returns:
the points of the Ipo curve.
           (type=list of BezTriples)

recalc()

Recomputes the curve after changes to control points.
Returns:
None
           (type=None)

setExtrapolation(extendmode)

Sets the extend mode of the curve.
Parameters:
extendmode - the extend mode of the curve. Can be Constant, Extrapolation, Cyclic or Cyclic_extrapolation.
           (type=string)
Returns:
None
           (type=None)

setInterpolation(interpolationtype)

Sets the interpolation type of the curve.
Parameters:
interpolationtype - the interpolation type of the curve. Can be Constant, Bezier, or Linear.
           (type=string)
Returns:
None
           (type=None)

Instance Variable Details

bezierPoints

The list of the curve's bezier points.
Type:
list

driver

Status of the driver. 1= on, 0= off.
Type:
int

driverChannel

Object channel used to drive the Ipo curve. Use module constants: IpoCurve.LOC_X, IpoCurve.LOC_Y, IpoCurve.LOC_Z, IpoCurve.ROT_X, IpoCurve.ROT_Y, IpoCurve.ROT_Z, IpoCurve.SIZE_X, IpoCurve.SIZE_Y, IpoCurve.SIZE_Z
Type:
int

driverObject

Object used to drive the Ipo curve.
Type:
Blender Object or None

name

The IpoCurve data name.
Type:
string

Generated by Epydoc 2.1 on Thu Dec 22 22:38:12 2005 http://epydoc.sf.net