Another Python Traceback when exporting to GLTF (Blender 3.0 only) #95061

Closed
opened 2022-01-19 17:38:01 +01:00 by EvgenyRodygin · 4 comments

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:
TubaGunner.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
**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 ](https://sketchfab.com/3d-models/tuba-gunner-guardian-of-orchestria-acff047a4aed49e29b6fb96f1b7f8428) in case). I removed all the textures and sound files and packed it into zip: [TubaGunner.zip](https://archive.blender.org/developer/F12811675/TubaGunner.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
Author

Added subscriber: @EvgenyRodygin

Added subscriber: @EvgenyRodygin

Added subscriber: @scurest

Added subscriber: @scurest
Dupe of blender/blender#93704

Closed as duplicate of blender/blender#93704

Closed as duplicate of blender/blender#93704
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#95061
No description provided.