Writing export scripts for blender

Started by
0 comments, last by MGB 12 years, 4 months ago
Does anyone know any tutorials for writing an export script for blender 2.5/2.6, I need write a script to export 3d models for my game. If anyone knows an existing script that I can modify to fit my purposes could they post a link, my format is pretty simple:

For each face output three vertices:



-0.5 -0.5 -0.5 0.0 0.0 0.0 -1.0 0.0
0.5 -0.5 -0.5 0.5 0.0 0.0 -1.0 0.0
-0.5 -0.5 0.5 0.0 0.5 0.0 -1.0 0.0



each line represents a vertex and the attributes of said vertex in the order: x y z u v nx ny nz, where the last three numbers represent the normal vector.

It does other stuff like define textures and normal maps but the script doesn't need to do that as i could input them manually.

So once again my question is where could I find a tutorial to write blender exports scripts or does anyone know of a similar existing script that I could modify?
Advertisement
Probably a good idea to look at the bundled exporter scripts to start (i.e. the DirectX one).

This topic is closed to new replies.

Advertisement