question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Difficulty exporting Blender actions

See original GitHub issue

Not entirely sure I’m doing this right, but thought I’d share my struggles in case there’s a bug or I’m misunderstanding Blender actions.

I’m trying to export a simple test scene with two Actions in Blender, and my goal is that each Action would become a distinct gltf.animations entry, so that they can be played back independently. Here’s my test .blend, and the .gltf output:

actions_test_gltf.zip

The Blender file has two actions, each operating on a different object. A third object in the scene is not animated. The output glTF has 6 animations, with three entries named for each of the two actions. Each animation entry targets only one object. This seems wrong in two ways: (1) the third object shouldn’t be targeted by any animation, and (2) if an action did target multiple objects (although these do not) the channels should all be combined into a single glTF animation entry.

When attempting to load the glTF in three.js I get an error about invalid typed array length. No output or visible error from BabylonJS.

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Kupomancommented, Sep 24, 2017

When exporting actions, blendergltf does not use the active action on an object. Instead all action and object pairs are checked for compatibility and exported. This would allow one armature to have multiple actions (e.g. walk, run, jump, etc.). This approach is not ideal, and we are working on ways to provide users better options when exporting animations.

That being said, the glTF output of this file is not even passing the validator, so there are also some bugs here. Thanks for the .blend file, I will start looking into fixing up some of the bugs it seems to be hitting. I suspect the bugs are related to animating Blender objects instead of bones, which is not well tested.

0reactions
donmccurdycommented, Oct 5, 2017

Many thanks! It’s working for me now. 😀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blender FBX export actions missing in Unity - YouTube
Hi everyone,I made this video for those having issues with importing fbx files into Unity, and for those like me, that learn on...
Read more >
{ANIMATIONS v2.8} ~ FBX exporting only the selected action ...
Finally, go to File->Export->FBX, under Include go Selected Objects then Shift + LMB Armature, Mesh, and Other. Under Transform, change Forward ...
Read more >
FBX: Trouble exporting animation to Unity, looking like ...
I'm having trouble with exporting a character animation from Blender to Unity. ... Bake Action).. but the baked animation in Blender has the...
Read more >
Blender FBX: Why are only some actions being imported ...
Why ? With ASCII export: The scale problem as mentioned above. My hammer animations stop working. If i tick Optimise Game Objects in...
Read more >
Add an option to export all animations, not just stashed ones.
Edit and re-generate the rig; Go to the animation tab; Select the first action; Click on "Stash", to store it on the NLA...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found