iqm icon indicating copy to clipboard operation
iqm copied to clipboard

Export all animations directly

Open TokyoSU opened this issue 3 years ago • 3 comments

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 :'(

TokyoSU avatar Jan 30 '22 08:01 TokyoSU

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)

experiment9123 avatar Mar 15 '22 08:03 experiment9123

this can work too

TokyoSU avatar Mar 15 '22 17:03 TokyoSU

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.

blubs avatar Oct 18 '23 07:10 blubs