export_GM6.py
What?
This is a Python script that should allow Blender to export GM6.1 model files.
What it does:
- Exports vertex positions (obviously)
- Exports face normals or vertex normals (you choose)
- Exports UV coordinates (or not, you choose)
- Export colours/alpha
- Export unconnected vertices/edges (at least, not correctly)
- Make tea
To use this, go open this folder:
C:\Program Files\Blender Foundation\Blender\.blender\scripts\
And put the script in there. Open Blender and open a scripts window. Click "Scripts -> Update Menus". Now make a model and export it. There should be a new option called "GM6.1 (*.d3d)". Click this and save it somewhere. A popup will show with some options. It's easy to understand, but I'll go through them anyway.
The options are:
Vertex Normals
Face Normals
Export UV coord
The first two options are mutually exclusive: You can only choose one. Well you can choose both or neither, but in the exporting it will choose one. The third option is whether or not to export UV coordinates. I don't think this needs any explanation.
I hope this is an acceptable topic for this forum. Sorry if it's not.
[edit]
Forgot to say that I'm a complete noob at Python. I actually just started learning basic Python the day before I made this script, so if anyone more experienced would like to improve my script please feel free to do so.
Edited by biggoron, 29 April 2007 - 08:03 PM.











