This is for people familiar with blender. A noob guide will be posted later.
*added* Learn Blander3D from scratch with a focus on games (Videos). http://iamar.net/subpages/BlenderVids.html
15 mins work total:

========================
Importing
========================
1. Get my blender 3D (*edit* see mirriors in third post for direct downloads) http://www.zshare.net/download/587455656d739739/ or just my scripts folder http://www.zshare.net/download/5874517431294641/. This is a windows workflow but linuxers should be able to follow without problem.
2. Inflate the zym you want to edit and the matching textures from whatever PK3
3. Fire up Blender and click file>import>zymotic (you will have to update menus to see it if you inflated justscripts.zip to your blender scripts folder). There you go, a perfect character with animations.
4 Apply the texture to the model. If there is no texture the final file you export will be textureless and invisible in nexuiz.
5. Add Spikes or just mess around with model to your liking. All animations are imported to the NLA editor. Mess with those also if you like.

====================================
Exporting
====================================
6. To export animations, create a working folder then select the armature and click file>export>Nexuiz(.smd). Select 'animation sequences All!' And export to your working folder. In my example i named my animations nexus simply because i was editing nexus.zym. Now you have a bunch of animation SMD's. You won't have to edit these again unless you change some animations or the armature.
7. To export the geometry, click on the mesh and click file>export>Nexuiz(.smd). Select 'Static mesh..'. Save this as mesh.smd in your working folder.
8. Configure zmodel. From the 'Blender/scripts/new animations' folder copy zmodel.exe, compile-zym.bat and config-zym.txt to your working folder. If you are in linux use wine or compile zmodel from source yourself. It's available online somewhere. Edit config-zym.txt to match your animation filenames. Be sure to set the scale to 1, origin to 0 0 0 and rotate to 0. Here's the beginning of mine, which outputs nexus.zym from mesh.smd.
- Code: Select all
output "nexus"
scale 1
origin 0 0 0
rotate 0
mesh mesh.smd
scene nexus_die1.smd fps 10 noloop
scene nexus_die2.smd fps 10 noloop
scene nexus_draw.smd fps 10
...
Once this is done you probably won't be touching any of this again so don't worry about this manual labour 2 much.
9. Double click compile-zym.bat to run zmodel on all your SMDs and hopefully a ZYM will appear in the work folder. Move this to Nexuiz\data\models\player and launch nexuiz. All done.
Setting up this the first time is a bit touchy but after you get it working the first time you will be cranking out playermodels at a lightening pace. I was considering completing the zym export script (it's was never completed) but the fps and looping parameters just make everything messy in blender since there is no good place to hold this data. Furthermore having the animations separate from mesh data is actually great for workflow.
P.S. http://www.easy-share.com/ really sux so i changed the links to zShare. Somebody please mirror these files somewhere better. Thanks to all you who wrote these scripts and blender itself. You all rock.