Rigged characters in Blender Error

I have a simple rigged character in Blender, but it is not exported properly. If there is no animation, the character is exported in T-Pose, and as soon as there is any animation it won’t export at all, giving a GLB export error.
It’s not just my scene, either. The same issues are present in the character animation sample scene.
I’m using the most recent Needle Engine in Blender 4.2.1 LTS.

Any help would be much appreciated!

Hi Dylan,

The issues you’re experiencing with exporting rigged characters in Blender (specifically T-Pose for non-animated characters and GLB export errors when animations are applied) are known challenges that can arise from various settings and configurations in Blender or the Needle Engine.

Steps to troubleshoot the GLB export issue:

  1. Animation Check: Ensure that your animations are correctly set up in Blender. Check if the actions on the armature are correctly linked and have keyframes. If there are any empty F-curves or unassigned actions, Blender may not export the animations correctly.

  2. Object Visibility: Verify that all objects you intend to export are visible and not hidden; hidden objects can prevent a successful export.

  3. Export Settings: When exporting to GLB, make sure that you are using the correct export settings in the Needle Engine add-on for Blender. Check the export mode you have selected. You may want to try toggling between “Everything” and “Components Only” to see if this affects the outcome (see export).

  4. Update Needle Engine: Since you are using the latest version of Needle Engine, ensure you also have the latest stable version of Blender (currently 4.2.1 LTS). Sometimes, integration issues might be addressed in newer versions.

  5. Logs Review: Utilize the error logs from Needle Engine to identify specific issues during the export process. You can access this via Help > Needle > Open Log (see the documentation).

  6. Testing with Sample Scenes: Since you mentioned that the same issues occur in the character animation sample scene, try exporting a simpler rigged character or model to see if the problem persists. This can help isolate whether it is your specific model or a general issue with the integration.

If after going through these steps, you are still facing issues, please let me know what specific errors you encounter during the GLB export, and I can assist you further with targeted troubleshooting.

Helpful Links:

Feel free to ask if you have more questions or need clarification on any points!

3 replies left
thread_RLHiqleEb6z8UgW5zYpdhAKp
Reply to this message to continue the conversation

Please share the full error that you are getting

This is what’s in the log for both scenes:
TypeError: can only concatenate str (not “glTF2ExportUserExtension”) to str
Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109

Traceback (most recent call last):
File “C:\Users\PC-07\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\Needle Engine Exporter for Blender\blender_export.py”, line 300, in exportScene
__runExport(finalPath)
File “C:\Users\PC-07\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\Needle Engine Exporter for Blender\blender_export.py”, line 373, in __runExport
callMethodWithArgs(bpy.ops.export_scene.gltf, args)
File “C:\Users\PC-07\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\Needle Engine Exporter for Blender\blender_export.py”, line 376, in callMethodWithArgs
return method(**args)
^^^^^^^^^^^^^^
File “C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py”, line 109, in call
ret = _op_call(self.idname_py(), kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Python: Traceback (most recent call last):
File “C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\io\exp\gltf2_io_user_extensions.py”, line 14, in export_user_extensions
hook(*args, export_settings)
TypeError: glTF2ExportUserExtension.gather_animation_channel_hook() takes 6 positional arguments but 8 were given

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\blender\exp\animation\sampled\armature\armature_action_sampled.py”, line 24, in gather_action_armature_sampled
channels, extra_channels = __gather_channels(
^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\blender\exp\animation\sampled\armature\armature_action_sampled.py”, line 82, in __gather_channels
return gather_armature_sampled_channels(armature_uuid, blender_action_name, export_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\blender\exp\animation\sampled\armature\armature_channels.py”, line 52, in gather_armature_sampled_channels
channel = gather_sampled_bone_channel(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\blender\exp\animation\sampled\armature\armature_channels.py”, line 126, in gather_sampled_bone_channel
export_user_extensions(‘gather_animation_channel_hook’,
File “C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\addons_core\io_scene_gltf2\io\exp\gltf2_io_user_extensions.py”, line 16, in export_user_extensions
export_settings[‘log’].error("Extension hook " + hook_name + " fails on " + extension)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
TypeError: can only concatenate str (not “glTF2ExportUserExtension”) to str
Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109

(at ERR:)
2024-10-08 11:40:21: EXPORT REPORT FOR 1 scenes to “Z:/Software/3D/Blender/Addons/Needle_Engine/Examples/Testproject/assets” (at printReport)
2024-10-08 11:40:21: !!! 1 errors occured during export (at printReport)
2024-10-08 11:40:21: Blender version: (4, 2, 1), Needle Engine Addon: 0.51.7 (at printReport)
2024-10-08 11:40:21: Auto compress is disabled (at runAutoCompress)

Ah ok thanks. Please update to Blender 4.2.2 - this was an issue in Blender’s glTF exporter where the plugin hook for animation channels wasn’t working as expected (not a Needle issue) but it should be fixed in the latest Blender version

This topic was automatically closed 13 days after the last reply. New replies are no longer allowed.