-
Notifications
You must be signed in to change notification settings - Fork 189
Enable kind of hacky multiple animation export #111
Conversation
This is a slight formalization of a patch proposed by @nicocornelis in KhronosGroup#39. When exporting, the active action for an armature is exported as usual, but additionally any associated NLA tracks will have their actions exported and named in the form: "${objectName}_${actionName}".
@cdata thanks! Will test this out later when I have a chance. FWIW as a reference, the Kupoman exporter has solved the "undesired results" by giving options to determine which Actions are exported for which objects: ^That feature has been working well for me there, although there are other aspects of this exporter that I depend on. |
👍 user configurability seems like a reasonable approach to this problem. Unfortunately, I don't have the time to adapt this patch right now. |
Hm, I think this is behaving differently than I'd expected. Starting from this source model: There is one mesh with three Actions, and I'm not using the NLA editor at all. On export, I get only the active Action. Ideally all three would be exported, even if not all are active. My full workflow is described here. |
I wonder, why are there 2 exporters, @donmccurdy you clearly seem to endorse https://github.com/Kupoman/blendergltf
sorry for the off-topic part. It's just, looking at the proposed change I couldn't help but feel it was written by someone with similarly puzzled perspective as myself. |
Not meant as an endorsement; just that the Kupoman/blendergltf supports export of multiple animations, which is a key feature that is currently missing from KhronosGroup/glTF-Blender-Exporter. I typically use KhronosGroup/glTF-Blender-Exporter. |
thanks for clarification @donmccurdy I'll work on this part, my python is quite poor though. [18/12/2017] update: |
Please provide non-hacky version. |
@UX3D-nopper is there an actual issue describing the feature somewhere? As far as I can tell, the use cases are scattered across a number of bug reports. I will happily pursue a non-hacky iteration if such a thing is described somewhere. |
Here is a video showing me exporting from Blender and importing into UE4 (so that export/import settings are known). https://www.youtube.com/watch?v=tHbaQeopVTM I am not sure what you mean by non-hacky version. Scene was setup in Blender 2.79 official release and represents classic workflow of an animator (one anim per Action), FBX exporter is Blender's official and FBX output hasn't been fiddled with. Everything is out of the box, so to speak. ZIP file contains FBX and .blend files: |
Oops, sorry, I thought I was posting into my issue #150 :/ |
Related to discussions in #39
IMPORTANT: It is probably best not to consider this proposal merge-worthy at this time. It is not tested, but more importantly the design is not necessarily the best solution to this problem. It can have undesired results such as duplicate animations being exported with different names, for example.
This is a slight formalization of a patch proposed by @nicocornelis in
#39.
When exporting, the active action for an armature is exported as usual,
but additionally any associated NLA tracks will have their actions
exported and named in the form: "${objectName}_${actionName}".