Keyframe handles dont follow keyframes. #81813
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#81813
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2070 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71
Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-10-17 21:36, hash:
f425f40c4e
Worked: never because it's a new feature
Short description of error
When Alt dragging a value or using "copy to selected" the keyframe values are updated to the correct values but if the keyframes are in "free" or "aligned" mode the bezier handles stay in place which is wrong behaviour.
There is NO case where you want to move the keyframes and have the beziers stay in the same absolute place
Exact steps for others to reproduce the error
Create an object.
Set several keyframes.
Select the keyframes
Press V and select free or aligned.
Use alt drag to slide the value of the active keyframe.
keyframes move but handles stay.
(look at the gif above as it shows the wrong and correct behaviour)
#81813.blend
Added subscriber: @LucianoMunoz
Added subscriber: @wbmoss_dev
Added subscriber: @dr.sybren
Changed status from 'Needs Triage' to: 'Confirmed'
I can confirm. Also when the keys are set to Auto Clamped or Auto, the handles don't move along when you drag the "Key Frame" property slider.
Update: This may be exposed by
0a66436fe5
, but I don't think it's caused by it. In 2.90 release you can also drag the Key Frame property slider, and the handles stay put.It looks like the rna for Keyframe Co value writes do not adjust handle values at all in (rna_fcurve.c) rna_FKeyframe_ctrlpoint_set(). When transforming through the GE, (transform.convert_graph.c) flushTransGraphData() will apply the expected offset to the handles. This is only necessary for Free and Aligned handle types. A call the fcurve_channel.update() is enough to fix it for Auto, Clamped, and Vector handle types. Fixing this within rna_FKeyframe_ctrlpoint_set() would affect any python scripts that assumed the existing behavior.
I'm not sure why this happens though. Using the slider for the Value property properly updates Auto, Clamped, and Vector, handle types properly Value-wise. But dragging the slider for the Frame property doesn't properly update them. Using fcurve_channel.update() should be enough to fix the issue for these handle types. I assumed that call happens already but maybe not due to these issues so I need to look into it more later.
The RNA setter functions shouldn't do anything except just set the values. If other things are necessary, this should be done in an update function (or in some other place).
Thanks for looking into it.
I had some improvement for the "Key Frame" slider by adding this line:
It doesn't solve the rest of the issues, though.
After asking in the the ui-module-team's blender chat, it seems there's no other way. Ultimately, we'd have to track the previous Co value manually outside of the UI system then apply that offset when the slider is modified. The patch below solves all the problems but it's also a bit of a loop hole. The patch effectively provides an alternative RNA property for keyframe.co where only the set() function differs. I haven't pushed a differential for it because I'm not sure if it's the "Blender way".
I agree that it's a bit weird to have two properties, but if it's the clearest way that's possible right now, I don't see a big objection.
This issue was referenced by
dbbfba9428
One thing I noticed just now, I think
co_ui
would be a better name for the property thanui_co
. When ordering the properties alphabetically the two properties will be next to each other and easier to find. It'll also help people when they use code completion in the Python console, becauseco<tab>
will list bothco
andco_ui
.Changed status from 'Confirmed' to: 'Resolved'