Bake Actions with constraints results in bad rotations #127312

Closed
opened 2024-09-08 16:12:51 +02:00 by Robin Karlsson · 2 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 560.94

Blender Version
Broken: version: 4.2.1 LTS, branch: blender-v4.2-release, commit date: 2024-08-19 11:21, hash: 396f546c9d82
Also tried in 4.1 with the same results.

Short description of error
When I set up an animation using empties with constraints on them and then try to bake the constraints sometimes they break down completely where their rotations are messed and no longer lined up to where they should be as can be seen in this image:
Bake_acxtion_constraint.png

In order to make the bake action break I deliberately went in and rotated the top and bottom empties (as it seemed to work otherwise without this). I've got constraints that control the rotations so it looks like this should still work and it does until you bake it out. Obviously going in and fixing this issue manually wouldn't be too bad in this file, but I did this in order to demonstrate the problem. I've run into this issue in production with much more advanced rigs and setups where it would be much more difficult to fix up (can't share them though).

Exact steps for others to reproduce the error
I've prepared an example blend file here:
Bake_Action_bug.blend

  1. Select the entire hierarchy named Unbaked Anims
  2. Go to Object>Animation>Bake Action
  3. Make sure 'Only Selected Bones' and 'Clear Constraints' are all ticked. Try ticking and unticking 'Visual Keying' without the issue getting much better either way.
  4. Hit OK to confirm and observe the broken results.

Only way to fix it seems to be to tick the 'Clear Parents' option (along with the other options mentioned previously) but obviously ticking this will break hierarchies which would need to be maintained for my use-case.
Bake_Actions.png

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 560.94 **Blender Version** Broken: version: 4.2.1 LTS, branch: blender-v4.2-release, commit date: 2024-08-19 11:21, hash: `396f546c9d82` Also tried in 4.1 with the same results. **Short description of error** When I set up an animation using empties with constraints on them and then try to bake the constraints sometimes they break down completely where their rotations are messed and no longer lined up to where they should be as can be seen in this image: ![Bake_acxtion_constraint.png](/attachments/ee68ff7e-dd3e-4866-913a-93aa16f97223) In order to make the bake action break I deliberately went in and rotated the top and bottom empties (as it seemed to work otherwise without this). I've got constraints that control the rotations so it looks like this should still work and it does until you bake it out. Obviously going in and fixing this issue manually wouldn't be too bad in this file, but I did this in order to demonstrate the problem. I've run into this issue in production with much more advanced rigs and setups where it would be much more difficult to fix up (can't share them though). **Exact steps for others to reproduce the error** I've prepared an example blend file here: [Bake_Action_bug.blend](/attachments/25fa8863-672b-44a9-a6bb-0160cb5b5395) 1. Select the entire hierarchy named Unbaked Anims 2. Go to Object>Animation>Bake Action 3. Make sure 'Only Selected Bones' and 'Clear Constraints' are all ticked. Try ticking and unticking 'Visual Keying' without the issue getting much better either way. 4. Hit OK to confirm and observe the broken results. Only way to fix it seems to be to tick the 'Clear Parents' option (along with the other options mentioned previously) but obviously ticking this will break hierarchies which would need to be maintained for my use-case. ![Bake_Actions.png](/attachments/f02f105d-f98c-4adb-935b-36d802faa116)
Robin Karlsson added the
Severity
Normal
Status
Needs Triage
Type
Bug
labels 2024-09-08 16:12:52 +02:00

Thanks for report, your file contains dependency cycle, please, fix this and check if this will resolve your issue.

Dependency cycle detected:
  OBpiston_top/TRANSFORM_CONSTRAINTS() depends on
  OBpiston_bottom/TRANSFORM_FINAL() via 'Track To'
  OBpiston_bottom/TRANSFORM_CONSTRAINTS() via 'ObConstraints -> Done'
  OBpiston_top/TRANSFORM_FINAL() via 'Track To'
  OBpiston_top/TRANSFORM_CONSTRAINTS() via 'ObConstraints -> Done'
Detected 1 dependency cycles
Thanks for report, your file contains dependency cycle, please, fix this and check if this will resolve your issue. ``` Dependency cycle detected: OBpiston_top/TRANSFORM_CONSTRAINTS() depends on OBpiston_bottom/TRANSFORM_FINAL() via 'Track To' OBpiston_bottom/TRANSFORM_CONSTRAINTS() via 'ObConstraints -> Done' OBpiston_top/TRANSFORM_FINAL() via 'Track To' OBpiston_top/TRANSFORM_CONSTRAINTS() via 'ObConstraints -> Done' Detected 1 dependency cycles ```
Member

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2024-10-11 09:30:26 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
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
Freestyle
Interest
Geometry Nodes
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
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
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#127312
No description provided.