[Bf-python] Getting IPO curves's values
Jacques Guignot
guignot at wanadoo.fr
Fri Dec 5 19:12:02 CET 2003
Jiba wrote:
>Hi all,
>
>For exporting animation data, i need to get the IPO curve's current values. I currently use the ipo.getCurveCurval(x) method, and i was assuming that curves 0 to 3 were the LocX-Y-Z curves, and 4 to 7 the RotX-Y-Z-W curves, but it seems that this order is not always right.
>
>
>So how could i know which curve ID correspond to LocX-Y-Z and RotX-Y-Z-W ?
>
Hi Jiba!
concerning the name of the IpoCurve's current value you access with
ipo.getCurveCurval(x), I'm sorry, but the current API does not give
access to it... I realize now it's really bad, and I'll add a more
handy function in next release.
>
>The ipo.getCurve(name) method can be used to get an IpoCurve object for a giving curve (e.g. LocX) but the IpoCurve object has no method equivalent to getCurveCurval, and the method causes segfault for some Ipo.
>
>
a) concerning the equivalent function of getCurve(name), I propose to
implement
ipo.getCurveCurval(name or int ) instead of ipo.getCurveCurval(int ) ?
b) Concerning segfaults. I did not notice... Will test more thoroughly...
>The ipo.getCurves() method returns a list of null IpoCurves.
>
>
Will look at that too...
Tks for your interest!
Regards.
J.
More information about the Bf-python
mailing list