Page 1 of 1

Blender Exporter error.

Posted: Sat Apr 09, 2005 8:46 am
by aniasis
I have been trying to assemble a tech demo using Blender + Ogre. My modeler has created several models for me. Not being familiar with Ogre I told him just to give me the model files and I would export to the engine. When I attempt to use the OgreExporter script for Blender I run into a Python error...

Traceback (most recent call last):
File "<string>", line 3795, in ?
File "<string>", line 3436, in initGUI
File "<string>", line 3425, in refreshGUI
File "<string>", line 615, in __init__
File "<string>", line 846, in _addArmatureActionActuator
TypeError: int() argument must be a string or a number

Apparently it is a type mismatch error. After debugging the script I noticed that one of the key frames has a value of None instead of an integer. The only wierd thing though is that I has comparable models which export successfully. I don't know how that frame key could have hat value. I am using the version 1.0.0 of the OgreExporter.

If there are any ideas contact me ASAP because I am really trying to put this demo together.

Posted: Sat Apr 09, 2005 4:21 pm
by IoN_PuLse
What is the version of Blender you are using, what OS are you using, what version of Python do you have installed...

Check the names of your actions, perhaps one of them has character in them that the export script is getting confused about...

Posted: Sat Apr 09, 2005 7:50 pm
by Timme
Blender doesn't work with Python 2.4. Check whether your PYTHON_PATH is set, please.

Take a look at these topic:

http://www.ogre3d.org/phpBB2/viewtopic.php?t=9089

Re: Blender Exporter error.

Posted: Sun Apr 10, 2005 1:24 am
by reimpell
aniasis wrote:TypeError: int() argument must be a string or a number
Your model probably has empty actions (i.e. actions without ipocurves). It should work with the latest CVS script version.