I want to write an exporter to export my models in my own file format so I can load them into my game engine. I am not really familiar with Python but I have quite an extensive programming background. I was just wondering if there are any good resources/references around for going about doing this.
All the addons for import and export should give you an idea.
It depends to a great deal WHAT you want to export …
Only a mesh? Or too its Materials? Or its parents? Or already animated? Or too …?!
I do not know a ‘general’ info about ‘how to wright an exporter’
I’ve done something similar. The code for the Obj exporter is under “scripts\addons\io_scene_obj” in your Blender directory. I studied this script to get the general idea for how the export process might work.
The nice thing about the OBJ format is the output is human-readable text so it is fairly easy to find a feature in the output file and then find the code in the OBJ script that generates it.
Be a lot easier to just make your game engine load some standard file format that blender already exports.
Plus there’s probably ~20 different threads asking this exact same question…