[Bf-python] Getting IPO curves's values

Jiba jiba at tuxfamily.org
Wed Dec 3 22:51:13 CET 2003


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 ?

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.

The ipo.getCurves() method returns a list of null IpoCurves.

Thanks,
Jiba



More information about the Bf-python mailing list