gltf2 not exporting animations in 3.0 #93704
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
Interest
Freestyle
Interest
Geometry Nodes
Interest
glTF
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
9 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#93704
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: win10-64
Graphics card: rx5700xt
Blender Version
Broken: 3.0.0 initial release of 3.0 branch, fresh out of beta
Worked:2.93
Short description of error
cannot export animated meshes in 3.0 using gltf2 export, throwing a python error unknow location etc.
Exact steps for others to reproduce the error
Test File
actors.blend
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_gltf2_init_.py", line 637, in execute
return gltf2_blender_export.save(context, export_settings)
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 46, in save
json, buffer = __export(export_settings)
File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 63, in __export
__gather_gltf(exporter, export_settings)
File "C:\Program Files\Blender Foundation\Blender 3.0\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 "C:\Program Files\Blender Foundation\Blender 3.0\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 "C:\Program Files\Blender Foundation\Blender 3.0\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 "C:\Program Files\Blender Foundation\Blender 3.0\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 "C:\Program Files\Blender Foundation\Blender 3.0\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 "C:\Program Files\Blender Foundation\Blender 3.0\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 "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_gather_cache.py", line 65, in wrapper_cached
result = func(*args)
File "C:\Program Files\Blender Foundation\Blender 3.0\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 "C:\Program Files\Blender Foundation\Blender 3.0\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:
Added subscriber: @justinbarrett
blender/blender-addons#95061 was marked as duplicate of this issue
Added subscriber: @Harley
Please include the exact error message text.
Added subscriber: @antoine.grasset
And could you provide an example file to help developers reproduce the issue ?
sure, sorry.
Python: Traceback (most recent call last):
AttributeError: 'Pose' object has no attribute 'rotation_mode'
location: :-1
actors.blend
sorry, the file didn't want to upload in my prev response. If it is user error, please explain what I am doing wrong...I wouldn't have submitted this if I thought It was user errror..but things happen.
Changed status from 'Needs Triage' to: 'Confirmed'
Thanks for the example blend file, I can reproduce the issue !
No, thank you for taking the time to look into this. I will go radio silent now, unless there is something more required from me. I don't want to make a bunch of white noise.
As you said it works in 2.93, but watching the console run during export I can see two batch of warnings that happens exactly when 3.0 throws an error !
You might want to have a look at you rig and troubleshoot these two PoseBones and their Animation Target :
Note to devs :
/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
it seems all the bow armatures are missing. I'm not sure if they were dropped as well when I saved over the original file from 2.93 to 3.0. I had not made any changes or deleted anything..so I'm uncertain. but I can check if by adding those armatures it restores functionality.
I see, this part is user error, they were not selected. I had them on a protected layer(embarrassing)...but it still drops all the weights going back to 2.93.
seems I still get the same error.
Added subscriber: @scurest
This (the error when exporting) is caused by a change in Python API. In 2.93
raises a ValueError. In 3.0, it successfully returns
ob.pose
. The glTF exporter is expecting the 2.93 behavior. I don't know if this is an intended change or not.I want to interject I can go back to 3.0.0 alpha 2021-08-06 and it works fine.
Added subscriber: @ideasman42
Actually
x.path_resolve('P.collection["non-existent"]')
appears to always resolve tox.path_resolve('P')
now.Possibly related to f9ccd26? Maybe @ideasman42 could look?
Added subscriber: @PratikPB2123
Hi, This is an expected behavior as said in the commit description
3b6ee8cee7
so I am removing that part from your report.
Also a message displays after opening the file in older versions:
File written by newer Blender binary (300.11), expect loss of data!
blender 3.0 to 2.93 drops vertex groups. gltf2 not exporting animations in 3.0to gltf2 not exporting animations in 3.0noted.
Added subscriber: @JulienDuroure
Potential fix: https://github.com/KhronosGroup/glTF-Blender-IO/pull/1498
Not sure if this workaround works for all cases
I would like to include glTF2 fix in corrective release #93479
Shouldn't path_resolve get fixed instead?
Can confirm the change in path_resolve was caused by
f9ccd26
. It doesn't happen when going back toRNA_path_resolve_full
.Of course fixing path_resolve would be a better fix than my workaround. Still waiting feedback from @ideasman42 to know if this is a regression or attended new feature
Anyway, fixing path_resolve or glTF workaround --> One one these two must be in corrective release
Adding PythonAPI tag, as this seems to be a regression in API. At least, this change is not documented in release note compatibility
This issue was referenced by
ad4d66580e
This issue was referenced by
8709cbb73e
Changed status from 'Confirmed' to: 'Resolved'
Thanks Campbell!
Added subscriber: @EvgenyRodygin