Please help me with this export script

I’m using Blender version 2.23 with Python 2.3

I’m trying to export animations to .X files using the Direct X export suite at http://space.tin.it/clubnet/arbenom/Export.htm

Seems as if only version 2.23 works. I am able to export meshes and simple animations with it. It is working properly. However, when I attempt to export animations using armatures, I get this error in the console.

File “AnimX.py”, line 42, in write Materials
mesh = Blender210.getMesh(object.data)
TypeError: argument1: expected string, None found

After looking in AnimX.py (it’s a file included with the Direct X export suite) the function of interest is

def writeMaterials(self,name,object):
object = Blender210.getObject(name)
mesh = Blender210.getMesh(object.data)
for index in range(len(object.materials)):
namecol = object.materials[index]
mat = Blender210.getMaterial(namecol)
self.file.write(“Material”)

Apparently Blender210.getObject() takes a string for a parameter but Blender210.getObject(name).data is not a string. Could someone please help me debug this? I really need this animation exporter. I don’t know the data types of the objects and stuff so I’m unable to attempt to fix this on my own. If anyone can point me to documation that descripes the blender objects, that would help too.

Again, higher versions of Blender will not work with this script because of the Blender210 module usage.

-You can find the new versions of the DirectX exporter
here or in the Blender projects of blender.org.There’s
a tutotrial on how to use it .

http://www.omariben.too.it/

You are using an old version.I must chenge the web page.

Ben