I'm storing links and code snippets here related to Blender scripting, to save me googling in the future ;)
- 3DF import:
- Figure out bone head/tail setup
Allow multiple meshes to be exported, and create a dummy bone per mesh. This is so every "sub mesh" can get its own collision in-game.
Create mesh, convert face-uv to vertex-uv. Look into creating Armature and weights based on the 3DF.
Use 3DF import code for base mesh, import animation frames as shape keys.
- Keyframe information: https://blender.stackexchange.com/questions/27889/how-to-find-number-of-animated-frames-in-a-scene-via-python
- Multiple animation export: https://blender.stackexchange.com/questions/3281/how-do-i-export-animation-data-stored-in-actions-using-the-python-api