Sunday, July 28, 2019

Blender multiple animations and Collada export


Say I have a simple mesh in Blender, with two keyframes, like so:


Left right keyframe 1 Left right keyframe 2



Then, another animation for the same mesh, also with two keyframes:


Up down keyframe 1 Up down keyframe 2


Theese animations worke fine in Blender and I can switch between them in the Dopesheet, where they are called "actions":


Dopesheet


The problem arises, when i try to export this to the Collada format, for use in my game engine. The only animation/action that seems to be carried over, is the one currently associated to the mesh. Is it possible to export multiple animations/actions for the same mesh, to the Collada format?



Answer



The Collada exporter in blender does not support what Collada calls "animation clips", so only the current animation will be exported. You have a few options I can think of:



  1. Fix the exporter (or convince someone to do it for you).

  2. Write a script that loops through the actions and exports a new file for each action.


  3. Use the NLA editor to create a track that has all the actions in sequence.

  4. Export to another format that is easier to work with.


Obviously the first choice would be most appreciated by everyone else coming across this problem in the future.


No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...