Export to Cal3D with Blender 2.41

I’m having problems exporting my model to the Cal3D format. I’m currently using version 2.41 of Blender. I do have the blender2cal3D.py file in my Blender/.blender/scripts directory. The error I’m getting is the following:

Using Python version 2.4
Traceback (most recent call last):
File “<string>”, line 1194, in fs_callback
File “<string>”, line 909, in export
AttributeError: ‘Armature’ object has no attribute ‘getBones’

Also, I believe I’m supposed to be seeing an interface for selecting some exporting options when I export the model. I do not see or get this interface. Does anyone have any suggestions for me?

You using wrong versionn of exporter. The working one for Blender 2.41 is “Cal3D Exporter 2 V1.1.0”. If you using this exporter for Crystalspace3d, here is little modified version (in this case, don’t forget use “export for soya”):

http://dmunition.ath.cx/blender2cal3d_2_2.py

which working for me.

Regards,
Roht

Thank you sooo much! It worked perfectly!!!

Well, for whatever reason, I’m getting a new error. I haven’t been able to figure out why yet so I’ll post it up…

Using Python version 2.4
skeleton
Free bone: Foot
0 Root bone: Foot
1 Bone: Head parent: Foot
Traceback (most recent call last):
File “<string>”, line 1810, in bevent
File “<string>”, line 1687, in export
File “<string>”, line 584, in to_cal3d
File “<string>”, line 726, in to_cal3d
AttributeError: ‘NoneType’ object has no attribute ‘id’

Any help is much appreciated!

  • willjm

Hey Roht,

there is a Cal3d in CVS for 2.41 - could you compare the two and see which you recommend? If the one you link is better, I can update CVS to use it…

LetterRip

I have a modified version I just posted about in this topic
http://blenderartists.org/forum/showthread.php?t=75708

I think it has some important parts fixed, and works perfectly for me so far. I don’t know if it has all the changes in the one posted here though. As for cvs, if he means the blender cvs, I think maybe we should start a thread in the blender.org development forums to keep working on this script, possibly combine changes as needed.

To make it easier to get the text only here is a direct link. One main change was to make animations only save keyframes those that are in the action.
http://fadedearth.infinityanalog.com/project_tools/bookblender2Cal3D.txt