lsalzman / iqm

Inter-Quake Model format development kit
MIT License
239 stars 73 forks source link

Export all animations directly #55

Open TokyoSU opened 2 years ago

TokyoSU commented 2 years ago

Would it be possible to just click export with a animation checkbox and all animation would be in one file ? I have a model with 300+ animation and it cause problem because i need to do export one animation at a time :'(

experiment9123 commented 2 years ago

related to this, I see that you can state explicitely which animations (actions) to export; I'd like to modify the exporter to have this filled with all the available actions by default (currently the default is export nothing, so you must always manually write out the anims you want)

TokyoSU commented 2 years ago

this can work too

blubs commented 8 months ago

Currently the exporter's Animations text field lets you export multiple animations via the following syntax: anim1_name, anim2_name, anim3_name, ...

It even supports specifying start / end frames, animation FPS, and flags (1 if animation should be looped, 0 otherwise), like so: anim1_name:1:100:30.0:1, anim2_name:...

Given that you can include multiple animations, one easy workaround for you might be to create a short python snippet that retrieves all of the blender animation (action) names and gives you a string you can just copy+paste into the IQM exporter Animations text box.

Like so: ', '.join([a.name for a in bpy.data.actions])

Then you just paste that code snippet into Blender's built-in python console and copy+paste the output into the animation box. You could even do additional filtering there to exclude some animations and/or customize the animation's export params.