41
46
- (): A list with all Ipos in the current scene.
49
53
This object gives access to generic data from all objects in Blender.
50
This object has no attribute.
55
Gets the name of the Ipo.
57
@return: the name of the Ipo.
59
Gets the name of the Ipo.
61
@return: the name of the Ipo.
61
Gets all the IpoCurves of the Ipo.
62
@rtype: list of IpoCurves
63
@return: A list (possibly void) containing all the IpoCurves associated to the Ipo object.
66
Gets all the IpoCurves of the Ipo.
67
@rtype: list of IpoCurves
68
@return: A list (possibly void) containing all the IpoCurves associated to the Ipo object.
65
71
def getCurve(curvename):
67
Returns the IpoCurve with the given name.
68
The possible values for curvename are R,G,B,SpecR,SpecG,SpecB,MirR,MirG,MirB,Ref,Alpha,Emit,Amb,Spec,Hard,SpTra,Ang,Mode,HaSize,OfsX,OfsY,OfsZ,SizeX,SizeY,SizeZ,TexR,TexG,TexB,DefVar,Col,Nor,Var(Material Ipo)
69
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 (World Ipo)
70
LocX,LocY,LocZ,dLocX,dLocY,dLocZ,RotX,RotY,RotZ,dRotX,dRotY,dRotZ,SizeX,SizeY,SizeZ,dSizeX,dSizeY,dSizeZ,Layer,Time,ColR,ColG,ColB,ColA (Object Ipo)
71
Lens,ClSta,ClEnd (Camera Ipo)
72
@type curvename : string
73
@rtype: IpoCurve object
74
@return: the corresponding IpoCurve, or None.
73
Return the IpoCurve with the given name. The possible values for
76
1. Camera Ipo: Lens, ClSta, ClEnd, Apert, FDist.
77
2. Material Ipo: R, G, B, SpecR, SpecG, SpecB, MirR, MirG, MirB, Ref,
78
Alpha, Emit, Amb, Spec, Hard, SpTra, Ior, Mode, HaSize, Translu,
79
RayMir, FresMir, FresMirI, FresTra, FresTraI, TraGlow, OfsX, OfsY,
80
OfsZ, SizeX, SizeY, SizeZ, texR, texG, texB, DefVar, Col, Nor, Var,
82
3. Object Ipo: LocX, LocY, LocZ, dLocX, dLocY, dLocZ, RotX, RotY, RotZ,
83
dRotX, dRotY, dRotZ, SizeX, SizeY, SizeZ, dSizeX, dSizeY, dSizeZ,
84
Layer, Time, ColR, ColG, ColB, ColA, FStreng, FFall, Damping,
86
4. Lamp Ipo: Energ, R, G, B, Dist, SpoSi, SpoBl, Quad1, Quad2, HaInt.
87
5. World Ipo: HorR, HorG, HorB, ZenR, ZenG, ZenB, Expos, Misi, MisDi,
88
MisSta, MisHi, StaR, StaG, StaB, StarDi, StarSi, OfsX, OfsY, OfsZ,
89
SizeX, SizeY, SizeZ, TexR, TexG, TexB, DefVar, Col, Nor, Var.
90
5. World Ipo: HorR, HorG, HorB, ZenR, ZenG, ZenB, Expos, Misi, MisDi,
91
MisSta, MisHi, StarR, StarB, StarG, StarDi, StarSi, OfsX, OfsY, OfsZ,i
92
SizeX, SizeY, SizeZ, texR, texG, texB, DefVar, Col, Nor, Var.
93
6. Texture Ipo: NSize, NDepth, NType, Turb, Vnw1, Vnw2, Vnw3, Vnw4,
94
MinkMExp, DistM, ColT, iScale, DistA, MgType, MgH, Lacu, Oct,
95
MgOff, MgGain, NBase1, NBase2.
97
8. Key Ipo: Speed, 'Key 1' - 'Key 63'.
98
9. Action Ipo: LocX, LocY, LocZ, SizeX, SizeY, SizeZ, QuatX, QuatY,
100
10. Sequence Ipo: Fac.
101
11. Constraint Ipo: Inf.
103
@type curvename : string
104
@rtype: IpoCurve object
105
@return: the corresponding IpoCurve, or None.
108
def addCurve(curvename):
110
Add a new curve to the IPO object. The possible values for 'curvename' are:
111
1. Camera Ipo: Lens, ClSta, ClEnd, Apert, FDist.
112
2. Material Ipo: R, G, B, SpecR, SpecG, SpecB, MirR, MirG, MirB, Ref,
113
Alpha, Emit, Amb, Spec, Hard, SpTra, Ior, Mode, HaSize, Translu,
114
RayMir, FresMir, FresMirI, FresTra, FresTraI, TraGlow, OfsX, OfsY,
115
OfsZ, SizeX, SizeY, SizeZ, texR, texG, texB, DefVar, Col, Nor, Var,
117
3. Object Ipo: LocX, LocY, LocZ, dLocX, dLocY, dLocZ, RotX, RotY, RotZ,
118
dRotX, dRotY, dRotZ, SizeX, SizeY, SizeZ, dSizeX, dSizeY, dSizeZ,
119
Layer, Time, ColR, ColG, ColB, ColA, FStreng, FFall, Damping,
121
4. Lamp Ipo: Energ, R, G, B, Dist, SpoSi, SpoBl, Quad1, Quad2, HaInt.
122
5. World Ipo: HorR, HorG, HorB, ZenR, ZenG, ZenB, Expos, Misi, MisDi,
123
MisSta, MisHi, StaR, StaG, StaB, StarDi, StarSi, OfsX, OfsY, OfsZ,
124
SizeX, SizeY, SizeZ, TexR, TexG, TexB, DefVar, Col, Nor, Var.
125
5. World Ipo: HorR, HorG, HorB, ZenR, ZenG, ZenB, Expos, Misi, MisDi,
126
MisSta, MisHi, StarR, StarB, StarG, StarDi, StarSi, OfsX, OfsY, OfsZ,i
127
SizeX, SizeY, SizeZ, texR, texG, texB, DefVar, Col, Nor, Var.
128
6. Texture Ipo: NSize, NDepth, NType, Turb, Vnw1, Vnw2, Vnw3, Vnw4,
129
MinkMExp, DistM, ColT, iScale, DistA, MgType, MgH, Lacu, Oct,
130
MgOff, MgGain, NBase1, NBase2.
132
8. Key Ipo: Speed, 'Key 1' - 'Key 63'.
133
9. Action Ipo: LocX, LocY, LocZ, SizeX, SizeY, SizeZ, QuatX, QuatY,
135
10. Sequence Ipo: Fac.
136
11. Constraint Ipo: Inf.
138
@type curvename : string
139
@rtype: IpoCurve object
140
@return: the corresponding IpoCurve, or None.
143
def removeCurve(curvename):
145
Remove a existing curve from the IPO object. See addCurve() for possible values for curvename.
146
@type curvename : string
76
151
def setName(newname):
78
Sets the name of the Ipo.
153
Sets the name of the Ipo.
154
@type newname: string
84
159
def getBlocktype():
86
Gets the blocktype of the Ipo.
88
@return: the blocktype of the Ipo.
161
Gets the blocktype of the Ipo.
163
@return: the blocktype of the Ipo.
90
166
def setBlocktype(newblocktype):
92
Sets the blocktype of the Ipo.
93
@type newblocktype: int. This value should not be changed, unless you really know what you do...
168
Sets the blocktype of the Ipo.
169
@type newblocktype: int
172
@warn: 'newblocktype' should not be changed unless you really know what
100
Gets the rctf of the Ipo.
101
Kind of bounding box...
102
@rtype: list of floats
103
@return: the rctf of the Ipo.
178
Gets the rctf of the Ipo.
179
Kind of bounding box...
180
@rtype: list of floats
181
@return: the rctf of the Ipo.
105
184
def setRctf(newrctf):
107
Sets the rctf of the Ipo.
108
@type newrctf: four floats . This value should not be changed, unless you really know what you do...
186
Sets the rctf of the Ipo.
187
@type newrctf: four floats.
190
@warn: rctf should not be changed unless you really know what you are
113
194
def getNcurves():
115
Gets the number of curves of the Ipo.
117
@return: the number of curve of the Ipo.
196
Gets the number of curves of the Ipo.
198
@return: the number of curve of the Ipo.
120
201
def getCurveBP(curvepos):
122
Gets the basepoint of a curve of the ipo.
124
@param curvepos: the position of the curve.
125
@rtype: a list of 4 floats
126
@return: the coordinates of the basepoint, or an error is raised.
203
This method is unsupported. BPoint Ipo curves are not implemented.
204
Calling this method throws a NotImplementedError exception.
205
@raise NotImplementedError: this method B{always} raises an exception
129
208
def getBeztriple(curvepos,pointpos):
131
Gets a beztriple of the Ipo.
133
@param curvepos: the position of the curve in the ipo
135
@param pointpos: the position of the point in the curve.
136
@rtype: list of 9 floats
137
@return: the beztriple of the Ipo, or an error is raised.
210
Gets a beztriple of the Ipo.
212
@param curvepos: the position of the curve in the ipo
214
@param pointpos: the position of the point in the curve.
215
@rtype: list of 9 floats
216
@return: the beztriple of the Ipo, or an error is raised.
139
219
def setBeztriple(curvepos,pointpos,newbeztriple):
141
Sets the beztriple of the Ipo.
143
@param curvepos: the position of the curve in the ipo
145
@param pointpos: the position of the point in the curve.
146
@type newbeztriple: list of 9 floats
147
@param newbeztriple: the new value for the point
152
def getCurvecurval(curvepos):
154
Gets the current value of a curve of the Ipo.
155
@type curvepos: int or string
156
@param curvepos: the position of the curve in the ipo or the name of the curve
158
@return: the current value of the selected curve of the Ipo.
221
Sets the beztriple of the Ipo.
223
@param curvepos: the position of the curve in the ipo
225
@param pointpos: the position of the point in the curve.
226
@type newbeztriple: list of 9 floats
227
@param newbeztriple: the new value for the point
232
def getCurveCurval(curvepos):
234
Gets the current value of a curve of the Ipo.
235
@type curvepos: int or string
236
@param curvepos: the position of the curve in the ipo or the name of the
239
@return: the current value of the selected curve of the Ipo.
161
242
def EvaluateCurveOn(curvepos,time):
163
Gets the current value of a curve of the Ipo.
165
@param curvepos: the position of the curve in the ipo
167
@param time: the position of the curve in the ipo
169
@return: the current value of the selected curve of the Ipo at the given time.
244
Gets the current value of a curve of the Ipo.
246
@param curvepos: the position of the curve in the ipo
248
@param time: the position of the curve in the ipo
250
@return: the current value of the selected curve of the Ipo at the given
177
256
The IpoCurve object
179
258
This object gives access to generic data from all ipocurves objects in Blender.
181
260
Important Notes for Rotation Curves:\n
182
For the rotation IpoCurves, the y values for points are in units of 10 degrees. 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.
261
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.
184
@cvar name: The Curve Data name.
185
@cvar bezierPoints : The list of the Bezier points.
263
@ivar name: The Curve Data name.
264
@ivar bezierPoints : The list of the Bezier points.
188
def setExtrapolation(extrapolationtype):
190
Sets the extrapolation type of the curve.
191
@type extrapolationtype: string
192
@param extrapolationtype: the extrapolatrion type of the curve. Can be Constant, Extrapolation, Cyclic or Cyclic_extrapolation.
267
def setExtrapolation(extendmode):
269
Sets the extend mode of the curve.
270
@type extendmode: string
271
@param extendmode: the extend mode of the curve.
272
Can be Constant, Extrapolation, Cyclic or Cyclic_extrapolation.
196
277
def getExtrapolation():
198
Gets the extrapolation type of the curve.
200
@return: the extrapolation type of the curve.Can be Constant, Extrapolation, Cyclic or Cyclic_extrapolation.
279
Gets the extend mode of the curve.
281
@return: the extend mode of the curve. Can be Constant, Extrapolation, Cyclic or Cyclic_extrapolation.
204
285
def setInterpolation(interpolationtype):
206
Sets the interpolation type of the curve.
207
@type interpolationtype: string
208
@param interpolationtype: the interpolatrion type of the curve. Can be Constant, Bezier, or Linear.
287
Sets the interpolation type of the curve.
288
@type interpolationtype: string
289
@param interpolationtype: the interpolation type of the curve. Can be Constant, Bezier, or Linear.
212
293
def getInterpolation():
214
Gets the interpolation type of the curve.
216
@return: the interpolation type of the curve.Can be Constant, Bezier, or Linear.
295
Gets the interpolation type of the curve.
297
@return: the interpolation type of the curve. Can be Constant, Bezier, or Linear.
219
300
def addBezier(coordlist):
221
Adds a Bezier point to a curve.
222
@type coordlist: tuple of (at least) 2 floats
223
@param coordlist: the x and y coordinates of the new Bezier point.
302
Adds a Bezier point to a curve.
303
@type coordlist: tuple of (at least) 2 floats
304
@param coordlist: the x and y coordinates of the new Bezier point.
309
def delBezier(index):
311
Deletes a Bezier point from a curve.
313
@param index: the index of the Bezier point. Negative values index from the end of the list.
230
Recomputes the curent value of the curve.
320
Recomputes the curve after changes to control points.
237
Returns the name of the ipo curve. This name can be : LocX,LocY,LocZ,dLocX,dLocY,dLocZ,RotX,RotY,RotZ,dRotX,dRotY,dRotZ,SizeX,SizeY,SizeZ,dSizeX,dSizeY,dSizeZ,Layer,Time,ColR,ColG,ColB,ColA,QuatX,QuatY,QuatZ or QuatW. Currently only works with object and action IPO's..
239
@return: the name of the ipo curve.
327
Returns the name of the ipo curve. This name can be:
328
1. Camera Ipo: Lens, ClSta, ClEnd, Apert, FDist.
329
2. Material Ipo: R, G, B, SpecR, SpecG, SpecB, MirR, MirG, MirB, Ref,
330
Alpha, Emit, Amb, Spec, Hard, SpTra, Ior, Mode, HaSize, Translu,
331
RayMir, FresMir, FresMirI, FresTra, FresTraI, TraGlow, OfsX, OfsY,
332
OfsZ, SizeX, SizeY, SizeZ, texR, texG, texB, DefVar, Col, Nor, Var,
334
3. Object Ipo: LocX, LocY, LocZ, dLocX, dLocY, dLocZ, RotX, RotY, RotZ,
335
dRotX, dRotY, dRotZ, SizeX, SizeY, SizeZ, dSizeX, dSizeY, dSizeZ,
336
Layer, Time, ColR, ColG, ColB, ColA, FStreng, FFall, Damping,
338
4. Lamp Ipo: Energ, R, G, B, Dist, SpoSi, SpoBl, Quad1, Quad2, HaInt.
339
5. World Ipo: HorR, HorG, HorB, ZenR, ZenG, ZenB, Expos, Misi, MisDi,
340
MisSta, MisHi, StaR, StaG, StaB, StarDi, StarSi, OfsX, OfsY, OfsZ,
341
SizeX, SizeY, SizeZ, TexR, TexG, TexB, DefVar, Col, Nor, Var.
342
5. World Ipo: HorR, HorG, HorB, ZenR, ZenG, ZenB, Expos, Misi, MisDi,
343
MisSta, MisHi, StarR, StarB, StarG, StarDi, StarSi, OfsX, OfsY, OfsZ,i
344
SizeX, SizeY, SizeZ, texR, texG, texB, DefVar, Col, Nor, Var.
345
6. Texture Ipo: NSize, NDepth, NType, Turb, Vnw1, Vnw2, Vnw3, Vnw4,
346
MinkMExp, DistM, ColT, iScale, DistA, MgType, MgH, Lacu, Oct,
347
MgOff, MgGain, NBase1, NBase2.
349
8. Key Ipo: Speed, 'Key 1' - 'Key 63'.
350
9. Action Ipo: LocX, LocY, LocZ, SizeX, SizeY, SizeZ, QuatX, QuatY,
352
10. Sequence Ipo: Fac.
353
11. Constraint Ipo: Inf.
356
@return: the name of the ipo curve.
244
Returns all the points of the ipo curve.
245
@rtype: list of BezTriples
246
@return: the points of the ipo curve.
361
Returns all the points of the ipo curve.
362
@rtype: list of BezTriples
363
@return: the points of the ipo curve.
249
366
def evaluate( time ):
251
Compute the value of the IpoCurve at a particular time.
253
@param time: value along the X axis
255
@return: the Y value of the curve at the given time
368
Compute the value of the IpoCurve at a particular time.
370
@param time: value along the X axis
372
@return: the Y value of the curve at the given time