[Bf-python] Proposal for Python IPO Curve module changes

Toni Alatalo antont at kyperjokki.fi
Tue Feb 22 10:01:38 CET 2005


On Mon, 21 Feb 2005, Gilbert, Joseph wrote:

> Do you willian or stephen know more than I do about the curve/IPO
> modules? :))  

i don't know anything about them, but mention one thing anyway:

> ipo1 = Blender.Ipo.New('Object','ObIpo')
> c1 = ipo1.addCurve(CurveTypes.OBJ_LOC_X)        # add "LocX" curve to
> c2 = ipo1.getCurve(CurveTypes.OBJ_LOC_X)        # get "LocX" curve for
> I've modified getCurve() and getCurveCurval() to accept this type of

in the python roundtable at the conference, iirc, this kind of interface 
was talked about as 'nice to have':

ipo1.loc_x     #get LocX
ipo1.loc_x[10] #get value of ipo1 locx at frame 10

would that or something like that be good, 
and could your system be wrapped (perhaps in python)
to have such an interface?

in python you don't really need getters, 
(or they can be hidden behind properties)
and the list-like access is kind of a standard method
for something that getCurveCurval() is used, no?

~Toni




More information about the Bf-python mailing list