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.

Can't export animations on NLA tracks

See original GitHub issue

My problem is that i can’t export stashed or pushed animations from NLA editor, only 1 animation is exported every time.

I’m getting the following messages on the console “ERROR: Invalid count 0” “WARNING: Skipping sampler {boneName}_{actionName}_translation, found missing or invalid data.” “WARNING: Skipped channel in action stand, missing sampler.”

Tried to debug but couldn’t managed it. The trace that i followed: the log “Invalid count 0” comes from create_accessor() that is called from generate_animations_parameter() when dealing with translation_data there is part commented # Sampler doesn't exist, lets create it keys = sorted(translation_data.keys()) keys are always empty[]

I’ve seen many issues about exporting multiple animations, however now it should work, based on other GitHub issues. So maybe my model has something to do with it, but the animations just work one-by-one, even if I import the model to Three.js

https://rawgit.com/tomo0613/2d-coa-test/master/index.html

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
tomo0613commented, Mar 10, 2019

Thanks for the update.

As i wanted to test, and replaced the exporter blender addon, i got the message below.

Traceback (most recent call last):
  File "/home/tomo/.config/blender/2.79/scripts/addons/io_scene_gltf2/__init__.py", line 289, in execute
    from .blender.exp import gltf2_blender_export
  File "/home/tomo/.config/blender/2.79/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_export.py", line 22, in <module>
    from io_scene_gltf2.blender.exp import gltf2_blender_gather
  File "/home/tomo/.config/blender/2.79/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather.py", line 18, in <module>
    from io_scene_gltf2.blender.exp import gltf2_blender_gather_nodes
  File "/home/tomo/.config/blender/2.79/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py", line 24, in <module>
    from io_scene_gltf2.blender.exp import gltf2_blender_gather_mesh
  File "/home/tomo/.config/blender/2.79/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_mesh.py", line 19, in <module>
    from io_scene_gltf2.blender.exp import gltf2_blender_gather_primitives
  File "/home/tomo/.config/blender/2.79/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitives.py", line 24, in <module>
    from io_scene_gltf2.blender.exp import gltf2_blender_gather_materials
  File "/home/tomo/.config/blender/2.79/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_materials.py", line 20, in <module>
    from io_scene_gltf2.blender.exp import gltf2_blender_gather_texture_info, gltf2_blender_export_keys
  File "/home/tomo/.config/blender/2.79/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py", line 19, in <module>
    from io_scene_gltf2.blender.exp import gltf2_blender_gather_texture
  File "/home/tomo/.config/blender/2.79/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture.py", line 22, in <module>
    from io_scene_gltf2.blender.exp import gltf2_blender_gather_image
  File "/home/tomo/.config/blender/2.79/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py", line 19, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'

I guess it only works under 2.8beta, but I failed to launch that as well “libmvec.so.1: cannot open shared object file”… I think I just wait for the stable releases.

0reactions
donmccurdycommented, Jun 18, 2019

This model now exports correctly when Always sample animations is enabled.

Closing this issue, and tracking the dependence on that option in https://github.com/KhronosGroup/glTF-Blender-IO/issues/558.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GLB exporting problem with NLA baked animation
While I can export .glb NLA baked animation in Blender 3.1 I can't Export .glb NLA baked animations in Blender 3.2 and upper...
Read more >
Wrong animation order in exported GLB with NLA tracks
Hello all, I'm having difficulties understanding how to control the order of my stacked animations in the NLA editor. I was certain that...
Read more >
How to fix animations not exporting from blender to unity
In this video I go over how to fix animations not exporting with your model from Blender into Unity. ... Your browser can't...
Read more >
Can you export NLA strips from one track that pull ... - CG Cookie
I have a bit of an issue when trying to export because it seems blender can EITHER export each NLA strip as a...
Read more >
Animation NLA blending issue - MSFS DevSupport
To get your character to have independent working animations (in the gltf viewer) I had to do the opposite: Mute all NLA tracks...
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