Animation: Add channel type options to the Bake Action operator #110903

Closed
Colin Basnett wants to merge 1 commits from cmbasnett/bdk-blender:anim-bake-components into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

This allows the user a fine degree of control as to which types of f-curve data will be written to the baked action (i.e., location, rotation, scale & b-bone channels).

image

Recovered from: https://archive.blender.org/developer/D16481

I have also added the ability to bake custom properties as well, but this is in a separate branch (https://projects.blender.org/cmbasnett/bdk-blender/src/branch/anim-bake-custom-props). When this gets approved, the custom props can be added as well.

This allows the user a fine degree of control as to which types of f-curve data will be written to the baked action (i.e., location, rotation, scale & b-bone channels). ![image](/attachments/3df99405-a712-4319-8cd2-129825847cef) Recovered from: https://archive.blender.org/developer/D16481 I have also added the ability to bake custom properties as well, but this is in a separate branch (https://projects.blender.org/cmbasnett/bdk-blender/src/branch/anim-bake-custom-props). When this gets approved, the custom props can be added as well.
Colin Basnett added the
Module
Animation & Rigging
label 2023-08-07 21:09:58 +02:00
Colin Basnett added 1 commit 2023-08-07 21:10:09 +02:00
c8dc0c6a6d Animation: Add channel type options to the Bake Action operator
This allows the user a fine degree of control as to which types of
f-curve data will be written to the baked action (i.e., location,
rotation, scale & b-bone channels).
Member

@ChrisLend just tagging you here since channel level baking is on our meeting discussion list.

@ChrisLend just tagging you here since channel level baking is on our meeting discussion list.
Colin Basnett requested review from Sybren A. Stüvel 2023-08-16 08:38:40 +02:00
Colin Basnett requested review from Nathan Vegdahl 2023-08-16 08:39:50 +02:00
Nathan Vegdahl reviewed 2023-08-21 17:54:05 +02:00
Nathan Vegdahl left a comment
Member

What's the rationale for having separate options for location, rotation, and scale vs just having a single "transforms" option?

More generally: short term, this design of just adding more options seems fine. But long-term I feel like we're going to run up against reasonable limits with that, while still not being flexible enough to actually accommodate all reasonable use cases. I'm not sure what the long-term design should look like, but this is just to say that I don't think we should try to accommodate all use cases with this, just the most common ones. Because a fully accommodating design will probably need to be quite different. Maybe based on keying sets, or something like that.

What's the rationale for having separate options for location, rotation, and scale vs just having a single "transforms" option? More generally: short term, this design of just adding more options seems fine. But long-term I feel like we're going to run up against reasonable limits with that, while still not being flexible enough to actually accommodate all reasonable use cases. I'm not sure what the long-term design should look like, but this is just to say that I don't think we should try to accommodate *all* use cases with this, just the most common ones. Because a fully accommodating design will probably need to be quite different. Maybe based on keying sets, or something like that.
@ -310,0 +325,4 @@
keyframes.add_paths(path_axis_angle, 4)
keyframes.add_paths(path_euler, 3)
if do_scale:
keyframes.add_paths(path_scale, 3)
Member

It looks like all of these keyframes.add_paths(...) in the conditionals are already run unconditionally on lines 314-319. Were those lines meant to be removed?

It looks like all of these `keyframes.add_paths(...)` in the conditionals are already run unconditionally on lines 314-319. Were those lines meant to be removed?
Member

yeah that is good, I would guess it came from people requesting it from cmbasnett but often If I don't have scale keys I don't want scale keys as a result of the bake and especially if I have additive layers...so having transform bake everything all the time with no control is a pain.

This is the bridge to get the custom attribute bake in so that we can use layers and rigify without 1k questions and endless NLA sucks, nothing works, comments on all parts of the internet and installing random addons 🙂
all baking to Nathan Vegdahl point needs a redo/upgrade anyway with then new system but that new stuff doesn't exist and having another release with non-usable baking for a core tool everyone uses to me is why I want his code to land and we can refine the options and control once the new layer system is ready.

yeah that is good, I would guess it came from people requesting it from cmbasnett but often If I don't have scale keys I don't want scale keys as a result of the bake and especially if I have additive layers...so having transform bake everything all the time with no control is a pain. This is the bridge to get the custom attribute bake in so that we can use layers and rigify without 1k questions and endless NLA sucks, nothing works, comments on all parts of the internet and installing random addons 🙂 all baking to Nathan Vegdahl point needs a redo/upgrade anyway with then new system but that new stuff doesn't exist and having another release with non-usable baking for a core tool everyone uses to me is why I want his code to land and we can refine the options and control once the new layer system is ready.
Member

Helping land this PR for @BClark & @cmbasnett here: #111997

Helping land this PR for @BClark & @cmbasnett here: https://projects.blender.org/blender/blender/pulls/111997
Nate Rupsis closed this pull request 2023-09-07 19:01:15 +02:00

Pull request closed

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
4 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#110903
No description provided.