Library Override: Support editing of animation data in overriden data-blocks. #72629

Open
opened 2019-12-21 19:11:51 +01:00 by Luc Revardel · 30 comments

A complete support of anim data edition in library overrides data-blocks is a rather complex and heavy task. Here is a proposed split of it into milestones. Please note that not all of those milestones will get a defined release targets yet.

Milestone 0 - Already in master

  • Add or replace the active action of an override data-block.

Milestone 1 - Minimal Viable Product - 2.92

  • Support adding new NLA tracks to overrides that already have animdata from their linked reference data-block, and make those new tracks fully editable.
  • Enable overrides of some properties of existing animdata (like show/hide for NLA strips, tracks, fcurves, settings of drivers?).

Milestone 2 - Potential Extensions - ???
Those will require #82160 (LibOverrides - Refactor how diffing of RNA collections is handled, and extend diffing possibilities.) to be tackled first.

  • Support editing of existing NLA tracks from the linked reference data-block, including adding/removing/re-ordering existing strips? Not sure how useful that would be in practice though.
  • Support adding/replacing FCurves in overrides of Actions and/or animdata (for drivers)? Same remarks as above.

Original report

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: 26bd5ebd42
Worked: (optional)

Short description of error
When animating armature override that contains drivers, actions added to NLA tracks are lost after saving/reloading blender file.

Exact steps for others to reproduce the error
1 - Load testCubeDriverNLA.blend (contains link to cubeRigDrivers.blend)
2 - Use "push down action" from the NLA editor to add current "ArmatureAction" action to a new track
CaptureRigDriverNLABug.PNG
3 - Save the file
4 - Reload the file: the NLA track is lost
CaptureRigDriverNLABug-lost.PNG

Blend files:
testCubeDriverNLA.blend

cubeRigDrivers.blend

A complete support of anim data edition in library overrides data-blocks is a rather complex and heavy task. Here is a proposed split of it into milestones. Please note that not all of those milestones will get a defined release targets yet. **Milestone 0 - Already in master** - [x] Add or replace the active action of an override data-block. **Milestone 1 - Minimal Viable Product - 2.92** - [x] Support **adding** new NLA tracks to overrides that already have animdata from their linked reference data-block, and make those new tracks fully editable. - [x] Enable overrides of some properties of existing animdata (like show/hide for NLA strips, tracks, fcurves, settings of drivers?). **Milestone 2 - Potential Extensions - ???** *Those will require #82160 (LibOverrides - Refactor how diffing of RNA collections is handled, and extend diffing possibilities.) to be tackled first.* - [ ] Support **editing** of existing NLA tracks from the linked reference data-block, including adding/removing/re-ordering existing strips? Not sure how useful that would be in practice though. - [ ] Support adding/replacing FCurves in overrides of Actions and/or animdata (for drivers)? Same remarks as above. -------------------------------- ## Original report **System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00 **Blender Version** Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: `26bd5ebd42` Worked: (optional) **Short description of error** When animating armature override *that contains drivers*, actions added to NLA tracks are lost after saving/reloading blender file. **Exact steps for others to reproduce the error** 1 - Load testCubeDriverNLA.blend (contains link to cubeRigDrivers.blend) 2 - Use "push down action" from the NLA editor to add current "ArmatureAction" action to a new track ![CaptureRigDriverNLABug.PNG](https://archive.blender.org/developer/F8239536/CaptureRigDriverNLABug.PNG) 3 - Save the file 4 - Reload the file: the NLA track is lost ![CaptureRigDriverNLABug-lost.PNG](https://archive.blender.org/developer/F8239543/CaptureRigDriverNLABug-lost.PNG) Blend files: [testCubeDriverNLA.blend](https://archive.blender.org/developer/F8239539/testCubeDriverNLA.blend) [cubeRigDrivers.blend](https://archive.blender.org/developer/F8239540/cubeRigDrivers.blend)
Author

Added subscriber: @lrevardel

Added subscriber: @lrevardel

#84486 was marked as duplicate of this issue

#84486 was marked as duplicate of this issue

#81381 was marked as duplicate of this issue

#81381 was marked as duplicate of this issue

#73141 was marked as duplicate of this issue

#73141 was marked as duplicate of this issue

#74884 was marked as duplicate of this issue

#74884 was marked as duplicate of this issue
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

I can reproduce that.

I can reproduce that.

Added subscriber: @mont29

Added subscriber: @mont29
Bastien Montagne self-assigned this 2020-01-15 11:14:49 +01:00

This is actually a known issue/TODO, editing an existing animdata of an overridden data-block is not supported/implemented yet.

Linked object with drivers already have an animdata, while linked object without any driver or animation does not have one, so creating one in the override does work.

This is actually a known issue/TODO, **editing** an existing animdata of an overridden data-block is not supported/implemented yet. Linked object with drivers already have an animdata, while linked object without any driver or animation does not have one, so creating one in the override does work.
Bastien Montagne changed title from Library Override: actions added to NLA tracks lost on save/reload (if armature contains drivers) to Library Override: Support editing of animation data in overriden data-blocks. 2020-01-15 11:15:32 +01:00

Added subscriber: @filibis

Added subscriber: @filibis

Added subscriber: @gabrign

Added subscriber: @gabrign

Added subscriber: @Rosalie

Added subscriber: @Rosalie

Added subscribers: @V-prime, @mano-wii, @ankitm

Added subscribers: @V-prime, @mano-wii, @ankitm

Added subscriber: @gnastacast

Added subscriber: @gnastacast

Added subscriber: @rollin

Added subscriber: @rollin
Contributor

Added subscriber: @RedMser

Added subscriber: @RedMser

Added subscriber: @georgK

Added subscriber: @georgK

So if there is no animation added to the source object, it should always be possible to add an animation to the override?
Because while it works in tests, it does not work in my project. I simplified my rig ("Problematic") and built a new version ("Working"). NLA strips can be added to the linked override of the new version and will be retained upon reload, but on the old version, NLA strips are gone upon reload (tested with today's master).
Perhaps you could have a look at my files, I fail to see the difference. If it is supposed to work, I can create a separate report if you like.
NLAOnOverride_dest.blend
NLAOnOverride_source.blend

So if there is no animation added to the source object, it should always be possible to add an animation to the override? Because while it works in tests, it does not work in my project. I simplified my rig ("Problematic") and built a new version ("Working"). NLA strips can be added to the linked override of the new version and will be retained upon reload, but on the old version, NLA strips are gone upon reload (tested with today's master). Perhaps you could have a look at my files, I fail to see the difference. If it is supposed to work, I can create a separate report if you like. [NLAOnOverride_dest.blend](https://archive.blender.org/developer/F9273920/NLAOnOverride_dest.blend) [NLAOnOverride_source.blend](https://archive.blender.org/developer/F9273918/NLAOnOverride_source.blend)
Author

@georgK I think it's the same issue as this report.
In your _source.blend, there's an empty NLA strip associated to Armature.problematic. This is taking the "animdata" slot when linking&overriding.
image.png
Not sure how you ended up with it, but you might want to erase this empty strip using "edit->remove empty animation data" option.

Regards

@georgK I think it's the same issue as this report. In your _source.blend, there's an empty NLA strip associated to Armature.problematic. This is taking the "animdata" slot when linking&overriding. ![image.png](https://archive.blender.org/developer/F9275233/image.png) Not sure how you ended up with it, but you might want to erase this empty strip using "edit->remove empty animation data" option. Regards

@lrevardel
That's it, thanks a lot!

@lrevardel That's it, thanks a lot!
Added subscribers: @Addison, @lichtwerk, @iss, @dfelinto, @WilliamReynish

Added subscribers: @MarkSutton, @TodorNikolov

Added subscribers: @MarkSutton, @TodorNikolov

This issue was referenced by c0bd240ad0

This issue was referenced by c0bd240ad0a17402db9d2e4799a433b81b62fca8

Added subscribers: @amshiv, @rjg

Added subscribers: @amshiv, @rjg

Added subscriber: @raincole

Added subscriber: @raincole

+1 for this. My workflow is:

  1. Make a character with several basic animations, like walking, jumping, swing the arm. Stash these animations in NLA.

  2. Link it into another .blend and fine tuning there

It kind of works, but I cannot delete the existing stashed actions. I have to make new actions, and they clutters NLA very fast.

+1 for this. My workflow is: 1) Make a character with several basic animations, like walking, jumping, swing the arm. Stash these animations in NLA. 2) Link it into another .blend and fine tuning there It kind of works, but I cannot delete the existing stashed actions. I have to make new actions, and they clutters NLA very fast.

Just thought I'd add something here as I've been using linked libraries extensively for a project and one of the issues/ difficulties I had was discerning which of the NLA tracks were from the link library, and therefore uneditable, and which were from the current blendfile. Feels like it would be helpful if the track was maybe greyed out, had the chainlink icon or something similar.

Just thought I'd add something here as I've been using linked libraries extensively for a project and one of the issues/ difficulties I had was discerning which of the NLA tracks were from the link library, and therefore uneditable, and which were from the current blendfile. Feels like it would be helpful if the track was maybe greyed out, had the chainlink icon or something similar.

Added subscriber: @fuchs_und_baer

Added subscriber: @fuchs_und_baer

Added subscriber: @YegorSmirnov

Added subscriber: @YegorSmirnov
Philipp Oeser removed the
Interest
Core
label 2023-02-09 14:43:16 +01: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
16 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#72629
No description provided.