Gltf 2.0 exporter: exporting Actions with "Bake all objects animations" does not bake actions to the selection. #104864

Closed
opened 2023-09-04 12:50:27 +02:00 by Pratik Borhade · 2 comments
Member

System Information
Operating system: Ubuntu 22.04
Graphics card:

Blender Version
Broken: 3.6.2

Short description of error

Exporting a Selected object which is constrained to a Animated object with "Bake all objects animations" and "Actions" options, does not bake actions to the selection.

Expected: for every Action (even only fake user actions), all constrains are applied to all objects and the final result is baked to a corresponding action for the selected object.

If we add the actions to the NLA stack of the Selected object the exported actions are empty. If we add the actions to the NLA of the Animated object, the top action strip is copied to every action.

Exact steps for others to reproduce the error

  • In the attached file, there is a Constrained armature in which each bone is constrained to a bone in Animated armature. There are two actions for Animated.
  • Try to export Constrained with "Limit to selected" option enabled.
  • Also we enable "Bake all objects animations" and "Actions" to bake animations from Animated. However, Blender wont bake animations and will give an error.
  • If we add the actions to the NLA stack for Constrained, the exported actions will be empty.
  • If actions are added to the NLA stack for the Animated, the exporter will take only the top action strip, overriding all other actions below. So that only one action can be baked to the ConstrainedRig.

Workaround:

The only way to export animations for ConstrainedRig is manually baking visual keys for each action. This is not optimum and forces user to fill each action with unwanted keyframes for ConstrainedRig. If we bake to other set of actions, the original set of actions get baked into the exported file.

bug-report-export-actions.blend

**System Information** Operating system: Ubuntu 22.04 Graphics card: **Blender Version** Broken: 3.6.2 **Short description of error** Exporting a Selected object which is constrained to a Animated object with "Bake all objects animations" and "Actions" options, does not bake actions to the selection. Expected: for every Action (even only fake user actions), all constrains are applied to all objects and the final result is baked to a corresponding action for the selected object. If we add the actions to the NLA stack of the Selected object the exported actions are empty. If we add the actions to the NLA of the Animated object, the top action strip is copied to every action. **Exact steps for others to reproduce the error** - In the attached file, there is a Constrained armature in which each bone is constrained to a bone in Animated armature. There are two actions for Animated. - Try to export Constrained with "Limit to selected" option enabled. - Also we enable "Bake all objects animations" and "Actions" to bake animations from Animated. However, Blender wont bake animations and will give an error. - If we add the actions to the NLA stack for Constrained, the exported actions will be empty. - If actions are added to the NLA stack for the Animated, the exporter will take only the top action strip, overriding all other actions below. So that only one action can be baked to the ConstrainedRig. Workaround: The only way to export animations for ConstrainedRig is manually baking visual keys for each action. This is not optimum and forces user to fill each action with unwanted keyframes for ConstrainedRig. If we bake to other set of actions, the original set of actions get baked into the exported file. [bug-report-export-actions.blend](https://projects.blender.org/attachments/b1b7195b-d075-428e-9258-ab120decede8)
Pratik Borhade added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-09-04 12:50:27 +02:00
Julien Duroure self-assigned this 2023-09-04 13:46:23 +02:00
Member

Hello,
We will fix the error.

But, here is no reason to take into account the original animations, and neither the active one, as the animated armature is not exported.
This is the same behavior in other exporter like fbx.
Even if we broadcast animation on the constraint armature, this will lead to bad animation, as there are constraints on bones.

Hello, We will fix the error. But, here is no reason to take into account the original animations, and neither the active one, as the animated armature is not exported. This is the same behavior in other exporter like fbx. Even if we broadcast animation on the constraint armature, this will lead to bad animation, as there are constraints on bones.
Member

error fixed by 15780ade32

error fixed by 15780ade327f81f7ba7d9b24f0b67df2416c58fc
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2023-09-25 12:50:28 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#104864
No description provided.