Closed rdb closed 9 years ago
Oh, this is option which users asks time from time, but to my shame I still noob in Blender and I don't know how to use actions ) May be it make me to learn this Blender feature. Thank you so much! As for animation improvements - you can create "issue" with feature request and I'll try to make everything in my power.
I have a model that is already animated, and has all the animations as individual Action objects (this is the way that you have multiple animations when working with the BGE, too). To export each one of them, YABEE currently requires me to select one, go to the exporter, set the frame range, export, select the next, go to the exporter, etc, etc. And I need to do that every time I want to re-export all the animations, which is extremely tedious.
This patch adds an "Animations from actions" option that, instead of taking the animations from a list, just exports one animation for each action. This seems like the better way to do it in general, to be honest. Disadvantages are that you can't specify a per-animation frame range or FPS, but that can be worked around, or added in the GUI in the future.
Sorry that this patch is a bit rudimentary, there could probably be more options for this... I guess it could be a useful starting point for now. There are more improvements I'd like to see in YABEE's animation handling but this is all I have time for right now. :-)
You may notice the -i option I'm passing to pview; it means that it will also try to match up animations that don't have a name corresponding to a character name. This allows previewing all of the animations in pview; you can use "a" to toggle through the animations in pview. (But pview has a bug here: if I switch to a different animation using "a", it won't actually update the animation unless I hit the "play" button again. I'll try to fix that.)