Maniphest T95061

Another Python Traceback when exporting to GLTF (Blender 3.0 only)
Closed, Duplicate

Assigned To
None
Authored By
Evgeny_Rodygin
Jan 19 2022, 5:38 PM
Tags
  • Add-ons (Community)
  • BF Blender (3.0)
  • Import/Export
Subscribers
Evgeny_Rodygin
Scurest (scurest)

Description

System Information
Operating system: Ubuntu 20.04.3
Graphics card: Nvidia GeForce 1060 GTX

Blender Version
Broken: 3.0.0
Worked: 2.9.3

Short description of error
I downloaded a source blend file from Sketchfab (Link in case).
I removed all the textures and sound files and packed it into zip:


Exporting the provided blend file to GLTF results in Python traceback in Blender 3.0.0:

Error: Python: Traceback (most recent call last):
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/__init__.py", line 637, in execute
    return gltf2_blender_export.save(context, export_settings)
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_export.py", line 46, in save
    json, buffer = __export(export_settings)
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_export.py", line 63, in __export
    __gather_gltf(exporter, export_settings)
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_export.py", line 77, in __gather_gltf
    active_scene_idx, scenes, animations = gltf2_blender_gather.gather_gltf2(export_settings)
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather.py", line 39, in gather_gltf2
    animations += __gather_animations(blender_scene, export_settings)
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather.py", line 83, in __gather_animations
    animations_, merged_tracks = gltf2_blender_gather_animations.gather_animations(_blender_object, merged_tracks, len(animations), export_settings)
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py", line 76, in gather_animations
    animation = __gather_animation(blender_action, blender_object, export_settings)
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py", line 114, in __gather_animation
    channels=__gather_channels(blender_action, blender_object, export_settings),
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py", line 149, in __gather_channels
    return gltf2_blender_gather_animation_channels.gather_animation_channels(
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_cache.py", line 65, in wrapper_cached
    result = func(*args)
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py", line 43, in gather_animation_channels
    groups = __get_channel_groups(blender_action, blender_object, export_settings)
  File "/snap/blender/1237/3.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py", line 367, in __get_channel_groups
    if rotation and target.rotation_mode not in rotation_modes:
AttributeError: 'Pose' object has no attribute 'rotation_mode'

location: /snap/blender/1237/3.0/scripts/modules/bpy/ops.py:132

Exact steps for others to reproduce the error

  • Open the provided blend file
  • Try to export as GLTF with default params

Event Timeline

Evgeny_Rodygin created this task.Jan 19 2022, 5:38 PM
Evgeny_Rodygin edited projects, added Add-ons (Community), BF Blender (3.0), Import/Export; removed BF Blender.
Scurest (scurest) added a subscriber: Scurest (scurest).Jan 19 2022, 6:00 PM

Dupe of T93704

Richard Antalik (ISS) closed this task as a duplicate of T93704: gltf2 not exporting animations in 3.0.Jan 19 2022, 6:37 PM