Need help with the DirectX Exporter script

Hi folks,

I’m playing around with Ben Omari’s DirectX Exporter, and I’m having a problem with it. I can’t seem to get it to work with Blender 2.28a. It works fine with 2.25 (as stated in Ben’s documentation), but is there a way that I can get it to work with Blender 2.28a or 2.28c (which I haven’t installed yet, but I’m assuming it won’t work with 2.28c either)?

Here’s the error message in the console…

Using a clean Global Dictionary.
EXPORTER:144: SyntaxWarning: name ‘X’ is used prior to global declaration
EXPORTER:144: SyntaxWarning: name ‘Y’ is used prior to global declaration
Traceback (most recent call last):
File “EXPORTER”, line 8, in ?
ImportError: cannot import name Mesh

In addition, the following row is highlighted in Blender…

from Blender import Object, Mesh, NMesh, Material

Thanks!

(from a quick reading of your post)

try version 2.23, the mesh module was discontinued I believe starting with version 2.25

(from futher reading of your post) (I guess it was discontinued after 2.25?)
not without writing yourself the mesh module (or changing the script to use NMesh), but you probably would have complained that you didn’t want to if you were a python coder. Hence, I don’t think there is a better (well, faster at least) solution than using 2.25.

Hi!
-I’m actually working on it.Anyway this is a
functional version for 2.28.

http://members.xoom.virgilio.it/glabro1/DirectX228.zip

-It’s not documented but it works as the 2.25 version.
Let me know.

Ben

This is great, thanks Ben! :smiley:

I’ll play around with your new version and let you know my results.

Thanks again!