Page MenuHome

GLTF 2.0: Exporting Armature in an otherwise empty scene throws error
Closed, ArchivedPublic

Description

System Information
Operating system: Darwin-19.5.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 555 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.9.15

Blender Version
Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: rB211b6c29f771
Worked: 2.82a

Short description of error
Adding an Armature to an empty scene and exporting to GLTF throws an error after attempting to export

Exact steps for others to reproduce the error
Add Armature
Export to GLTF
Export GLTF 2.0

Event Timeline

Ankit Meel (ankitm) changed the task status from Needs Triage to Needs Information from User.Jun 4 2020, 7:30 PM
Ankit Meel (ankitm) renamed this task from GLTF Exporting Armature to GLTF 2.0: Exporting Armature in an otherwise empty scene throws error.Jun 4 2020, 7:31 PM
Ankit Meel (ankitm) edited projects, added Add-ons (Community); removed BF Blender.

I see it's actually related to Mozilla's Hubs extensions add on , I disabled that add on and there is no error 🤦‍♀️

but with it enabled :
Warning: 'HubsGLTFExportPanel' doesn't contain '_PT_' with prefix & suffix
18:21:04 | INFO: Starting glTF 2.0 export
18:21:04 | INFO: Extracting primitive: Cube
18:21:04 | INFO: Primitives created: 1
Traceback (most recent call last):

File "Blender 2.83.app/Contents/Resources/2.83/scripts/addons/io_scene_gltf2/__init__.py", line 506, in execute
  return gltf2_blender_export.save(context, export_settings)
File "Blender 2.83.app/Contents/Resources/2.83/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_export.py", line 42, in save
  json, buffer = __export(export_settings)
File "Blender 2.83.app/Contents/Resources/2.83/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_export.py", line 55, in __export
  __gather_gltf(exporter, export_settings)
File "/Users/ronniehohip/Library/Application Support/Blender/2.83/scripts/addons/io_scene_hubs/__init__.py", line 25, in patched_gather_gltf
  orig_gather_gltf(exporter, export_settings)
File "Blender 2.83.app/Contents/Resources/2.83/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_export.py", line 64, in __gather_gltf
  active_scene_idx, scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings)
File "Blender 2.83.app/Contents/Resources/2.83/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather.py", line 37, in gather_gltf2
  scenes.append(__gather_scene(blender_scene, export_settings))
File "Blender 2.83.app/Contents/Resources/2.83/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_cache.py", line 65, in wrapper_cached
  result = func(*args)
File "Blender 2.83.app/Contents/Resources/2.83/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather.py", line 60, in __gather_scene
  blender_scene, None, export_settings)
File "Blender 2.83.app/Contents/Resources/2.83/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py", line 47, in gather_node
  node = __gather_node(blender_object, library, blender_scene, dupli_object_parent, export_settings)
File "Blender 2.83.app/Contents/Resources/2.83/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_cache.py", line 65, in wrapper_cached
  result = func(*args)
File "Blender 2.83.app/Contents/Resources/2.83/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py", line 61, in __gather_node
  children=__gather_children(blender_object, blender_scene, export_settings),
File "Blender 2.83.app/Contents/Resources/2.83/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py", line 161, in __gather_children
  joint = gltf2_blender_gather_joints.gather_joint(blender_object, blender_bone, export_settings)

TypeError: patched_gather_joint() takes 2 positional arguments but 3 were given

location: <unknown location>:-1

location: <unknown location>:-1

Ankit Meel (ankitm) closed this task as Archived.Jun 4 2020, 8:51 PM
Ankit Meel (ankitm) claimed this task.

I see it's actually related to Mozilla's Hubs extensions add on , I disabled that add on and there is no error 🤦‍♀️
but with it enabled :

I will request @Julien DUROURE (julien) to take a look here & reopen if necessary.

I confirm that the problem come from Mozilla's Hubs extensions add on, that probably didn't update code to reflect recent changes from Khronos/Blender exporter