Gents,
I'm writing some exporter code to export skeleton animation, and I decided to be smart and grab the ipo curves by name instead of index in the ipo. However, it seems that the quaternion ipos Quat{X/Y/Z/W} fail when I attempt to use ipocurve.getName() on them.
Since quat ipocurves are ipocurves with codes 25-28, it seems I can just add them to the name array in the function IpoCurve_getName() ( in python/api2_2x/ipocurve.c). But I'm not sure it is this simple. It seems there are object ipocurvess and action ipocurves; do I need to distinguish between them to figure out what ipocurve name to return? Is there anything else going on that will screw up this simple fix?
Thanks,
Gary
getting ipocurve name for action quats
Moderators: jesterKing, stiv
Ipo flaws
You can put your old code into ader_ton wrote:is there a workaround for Blender2.31?
Code: Select all
try:
# insert old code
except TypeError:
# insert code for blender 2.32
Regards,
Michael
Yep that´s what I´m doing...
but still I have encountered problems with the "guessing the name of the curve from its index number" method:
http://www.blender.org/modules.php?op=m ... pic&t=2911
but still I have encountered problems with the "guessing the name of the curve from its index number" method:
http://www.blender.org/modules.php?op=m ... pic&t=2911