GLTFLoader: Only one animation created by Blender exporter

I have a 3D glb model generated using blender and it has multiple animations.
When I render the file through threejs I get only one animation object i.e animation_0, because of this I am unable to control the individual animations.

  1. Is it possible for me to have control over these animations through threejs?
  2. Do these animations need some changes before exporting from blender?
  3. Why is the name always ‘animation_0’? Can it be changed? (I have given proper names to every animation in blender)

@donmccurdy I have tried this solution but din’t work for me.

Is there any WIP regarding this?

Three.js version
  • Dev
  • [x ] r92
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Author: Fantashit

1 thought on “GLTFLoader: Only one animation created by Blender exporter

  1. glTF supports multiple animations, but issues 1–3 result from the Blender exporter only being able to export a single animation. As you found, KhronosGroup/glTF-Blender-Exporter#166 is the WIP for fixing this. If you’ve installed that version of the exporter but are still only getting a single animation, then I’ll need more information.

    When you say the Blender file has multiple animations, do you mean multiple Actions? Or NLA tracks? Posting the .blend file (you can attach ZIP files to GitHub comments) would be the most helpful way to clarify this.

Comments are closed.