Library Override: Change handling of Animation Data when it exists in both liboverride and linked reference IDs #110067

Closed
opened 2023-07-13 17:46:24 +02:00 by Bastien Montagne · 4 comments

In current Blender versions (up to 4.0 alpha) and since the beginning, when both the liboverride data-block and its linked reference have a (non -matching) AnimationData data, the animation data from the linked reference replaces the one from the liboverride.

This is typically a problem when the data initially linked and overridden have no animdata. Then when animation is created for the liboverride, a new, non-matching liboverride animdata is created. This data would then be lost if the linked data gets animated later on.

The proposal here is to reverse this behavior:

  • If a liboverride have animdata, always keep it.
  • This has potential complex side-effects:
    • Part of the animdata items (e.g. the drivers) is not overridable currently, these would be reset regardless to the linked reference animdata.
    • Some data (like the active action) would be kept.
    • NLA behavior in that scenario is not clear currently (needs to be investigated/tried out further).
In current Blender versions (up to 4.0 alpha) and since the beginning, when both the liboverride data-block and its linked reference have a (non -matching) `AnimationData` data, the animation data from the linked reference replaces the one from the liboverride. This is typically a problem when the data initially linked and overridden have no animdata. Then when animation is created for the liboverride, a new, non-matching liboverride animdata is created. This data would then be lost if the linked data gets animated later on. The proposal here is to reverse this behavior: * If a liboverride have animdata, always keep it. * This has potential complex side-effects: * Part of the animdata items (e.g. the drivers) is not overridable currently, these would be reset regardless to the linked reference animdata. * Some data (like the active action) would be kept. * NLA behavior in that scenario is not clear currently (needs to be investigated/tried out further).
Bastien Montagne added this to the 4.0 milestone 2023-07-13 17:46:24 +02:00
Author
Owner

@SimonThommes @dr.sybren @nathanvegdahl Here is a task to keep track of this topic.

@SimonThommes @dr.sybren @nathanvegdahl Here is a task to keep track of this topic.

Sorry for the delay. This was discussed in the 2023-07-13 Animation & Rigging module meeting.

The proposal here is to reverse this behavior: If a liboverride have animdata, always keep it.

👍 from the A&R module.

We got confused a bit about the drivers though:

Part of the animdata items (e.g. the drivers) is not overridable currently, these would be reset regardless to the linked reference animdata.

This sounds like the drivers in the library AnimData would effectively replace any drivers in the kept liboverride animdata. That would be the desirable outcome, as the drivers are typically seen as "part of the rig" and not something animators would add.

The confusion comes from our (Nathan's and my) understanding of what we discussed face-to-face before, that there would be a rather hard choice between "100% local AnimData" and "100% linked-in AnimData", which seems to differ from what you described above. Again, what you describe above is indeed desired, we just didn't think it would be (practically) possible without major work.

Sorry for the delay. This was discussed in [the 2023-07-13 Animation & Rigging module meeting](https://devtalk.blender.org/t/2023-07-13-animation-rigging-module-meeting/30261). > The proposal here is to reverse this behavior: If a liboverride have animdata, always keep it. :+1: from the A&R module. We got confused a bit about the drivers though: > Part of the animdata items (e.g. the drivers) is not overridable currently, these would be reset regardless to the linked reference animdata. This sounds like the drivers in the library `AnimData` would effectively replace any drivers in the kept liboverride animdata. That would be the desirable outcome, as the drivers are typically seen as "part of the rig" and not something animators would add. The confusion comes from our (Nathan's and my) understanding of what we discussed face-to-face before, that there would be a rather hard choice between "100% local `AnimData`" and "100% linked-in `AnimData`", which seems to differ from what you described above. Again, what you describe above is indeed desired, we just didn't think it would be (practically) possible without major work.
Author
Owner

This sounds like the drivers in the library AnimData would effectively replace any drivers in the kept liboverride animdata. That would be the desirable outcome, as the drivers are typically seen as "part of the rig" and not something animators would add.

This is the goal of the new behavior yes.

The confusion comes from our (Nathan's and my) understanding of what we discussed face-to-face before, that there would be a rather hard choice between "100% local AnimData" and "100% linked-in AnimData", which seems to differ from what you described above. Again, what you describe above is indeed desired, we just didn't think it would be (practically) possible without major work.

It is doable, but not with the default generic handling. It requires custom code and relying on complex subtleties of the liboverride apply & diffing code when it comes to RNA pointer properties.

Think the proposed patch (!110900) has the expected behavior, more testing on it is more than welcome!

> This sounds like the drivers in the library `AnimData` would effectively replace any drivers in the kept liboverride animdata. That would be the desirable outcome, as the drivers are typically seen as "part of the rig" and not something animators would add. This is the goal of the new behavior yes. > The confusion comes from our (Nathan's and my) understanding of what we discussed face-to-face before, that there would be a rather hard choice between "100% local `AnimData`" and "100% linked-in `AnimData`", which seems to differ from what you described above. Again, what you describe above is indeed desired, we just didn't think it would be (practically) possible without major work. It is doable, but not with the default generic handling. It requires custom code and relying on complex subtleties of the liboverride apply & diffing code when it comes to RNA pointer properties. Think the proposed patch (!110900) has the expected behavior, more testing on it is more than welcome!
Author
Owner

Implemented by f188d6709f, closing.

Implemented by f188d6709f, closing.
Blender Bot added the
Status
Archived
label 2023-08-15 17:07:28 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
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, Assets & 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
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
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
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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
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#110067
No description provided.