[Bf-python] module IPO

Jacques Guignot guignot at wanadoo.fr
Thu Jul 17 19:49:45 CEST 2003


Yes.

The compatibility is ***completely*** broken with ipo module.
For a simple and stupid reason : when I began to write the ipo module, I 
did not mention it existed already (yes, print dir(Blender) . I know)
When I saw it, in wondered if it was worth to rewrite it, taking care of 
the existing module.

I don't think so, for the following reasons.

1) This module is absolutely obfuscated; a rough exploration gives us 
the following structure :

 MODULE Blender.Ipo

BezierPoint builtin_function_or_method
Eval function
Get function
IpoBlock class
IpoCurve class
New function
Recalc function
_Ipo module
_RotIpoCurves list
__builtins__ dict
__doc__ str
__file__ str
__name__ str
_convertBPoint function
_radian_factor float
get function
shadow module


MODULE Blender.Ipo._Ipo

BezTriple builtin_function_or_method
ExtrapolationTypes const
InterpolationTypes const
New builtin_function_or_method
Types const
__doc__ NoneType
__name__ str
get builtin_function_or_method

 MODULE Blender.Ipo.shadow

_List function
__builtins__ dict
__doc__ str
__file__ str
__name__ str
_getModeBits function
_getattrEx function
_link function
_setModeBits function
dict class
hasIPO class
hasModes class
shadow class
shadowEx class


hrrmmm, 2 submodules, shadow and _Ipo,...strange.


2) This module does not seem to be documented. Anyway I did not find the 
doc.

3) This module does not looks finished. For instance, there is a 
function for getting curves associated to locations, no for rotations 
and sizes...

4) I tested the main python scripts, seriously maintained, and a good 
bunch of smaller scripts I found on the net, and had no problems with 
Ipos... I begin to think nobody has ever used this module...

5) The mod I wrote is much much simpler. It gives the access to the 
coordinates of the control points of the curves of the ipo (!). I think 
it is the most important thing. If scripts writers want more functions 
(add a new curve for instance), we'll implement it later, but I doubt it 
would be really needed.

Cheers

J.






More information about the Bf-python mailing list