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

Class IpoCurve


The IpoCurve object

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

Important Notes for Rotation Curves:

For the rotation IpoCurves, 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 pupmenu ( NKey ) in the IPO Curve Editor window. Positive rotations are in a counter-clockwise direction, just like in math class.
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 IpoCurve 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.

Class Variable Summary
  bezierPoints: The list of the Bezier points.
  name: The Curve 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 IpoCurve 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. Key Ipo: Speed, 'Key 1' - 'Key 63'.
  5. Action Ipo: LocX, LocY, LocZ, SizeX, SizeY, SizeZ, QuatX, QuatY, QuatZ, QuatW.
  6. Sequence Ipo: Fac.
  7. 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)

Class Variable Details

bezierPoints

The list of the Bezier points.

name

The Curve Data name.

Generated by Epydoc 2.1 on Mon Jun 13 15:31:23 2005 http://epydoc.sf.net