Graph Editor sampling key frames issue #53229

Closed
opened 2017-11-02 07:41:35 +01:00 by Koichi Yamagishi · 10 comments

System Information
Windows 10 64Bit, GTX980

Blender Version
Broken: 2.79

Short description of error
Graph Editor >Key >Sample Keyframes (Shift + o) doesn't sample correctly.
Exact steps for others to reproduce the error

  1. Grab the default cube, make a location key frame as is default, 0, 0, 0 at frame #0.
  2. Scroll time line and go to frame #30
  3. Bring the cube up z, 10 (whatever) and make a location key, x =0, y =0, z = 10 like so.
  4. Scroll time line and go to frame #60
  5. Put the cube back to original position, x =0, y =0, z =0
    6, With selecting the cube, open graph editor and Key > Sample keyframes
  6. Please undo and redo to compare the difference between before and after the command applied.FCurveSampleIssue1.JPG
**System Information** Windows 10 64Bit, GTX980 **Blender Version** Broken: 2.79 **Short description of error** Graph Editor >Key >Sample Keyframes (Shift + o) doesn't sample correctly. **Exact steps for others to reproduce the error** 1. Grab the default cube, make a location key frame as is default, 0, 0, 0 at frame #0. 2. Scroll time line and go to frame #30 3. Bring the cube up z, 10 (whatever) and make a location key, x =0, y =0, z = 10 like so. 4. Scroll time line and go to frame #60 5. Put the cube back to original position, x =0, y =0, z =0 6, With selecting the cube, open graph editor and Key > Sample keyframes 7. Please undo and redo to compare the difference between before and after the command applied.![FCurveSampleIssue1.JPG](https://archive.blender.org/developer/F1085364/FCurveSampleIssue1.JPG)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @odieyama

Added subscriber: @odieyama
Member

Added subscriber: @JoshuaLeung

Added subscriber: @JoshuaLeung
Joshua Leung self-assigned this 2017-11-02 12:03:23 +01:00
Member

Confirmed. Looks like the problem is that it currently adds keyframes between each pair of keyframes instead of sampling the whole region first before changing anything.

graph_edit-sample_keys-01.blend

Confirmed. Looks like the problem is that it currently adds keyframes between each pair of keyframes instead of sampling the whole region first before changing anything. [graph_edit-sample_keys-01.blend](https://archive.blender.org/developer/F1086117/graph_edit-sample_keys-01.blend)

Added subscriber: @PeterBoos

Added subscriber: @PeterBoos

Well it is solvable, also...

Remind the process of this, if you select 2 key frames and do "sample key frames".
Normally the goal of that is to produce a smooth transistion to just those 2 frames.
And that results in 'sub' key frames , each frame has bezier curve and because the next frames are close their control vectors are short as well.
Thus since by default those control vectors are mirrored the first and the last one get a small vector to, and since by default it are mirrored control vector that causes the shape change beyon the selected period.

Here is how you could do this :
Turn begin and end bezier curve into (Key > Handle type > free ), this disables the mirroring effect they normally have (which is normally handy).
Next from the two bezier points only select the 2 vectors that suround the area where you want to do this.
Next perform "Sample key frames".

Its not realy a bug i believe, but maybe it wouldnt be a big code change to automate what i just described
ea if there is a continous selection of keyframes turn first and last one into free type before sampling all the key frames.

PS i wonder why one would do this, as normally you would be glad to not have so many key frames (its a big trouble to alter values for a series of them ..)

Well it is solvable, also... Remind the process of this, if you select 2 key frames and do "sample key frames". Normally the goal of that is to produce a smooth transistion to just those 2 frames. And that results in 'sub' key frames , each frame has bezier curve and because the next frames are close their control vectors are short as well. Thus since by default those control vectors are mirrored the first and the last one get a small vector to, and since by default it are mirrored control vector that causes the shape change beyon the selected period. Here is how you could do this : Turn begin and end bezier curve into (Key > Handle type > free ), this disables the mirroring effect they normally have (which is normally handy). Next from the two bezier points only select the 2 vectors that suround the area where you want to do this. Next perform "Sample key frames". Its not realy a bug i believe, but maybe it wouldnt be a big code change to automate what i just described ea if there is a continous selection of keyframes turn first and last one into free type before sampling all the key frames. PS i wonder why one would do this, as normally you would be glad to not have so many key frames (its a big trouble to alter values for a series of them ..)
Member

While investigating this yesterday, I realised that there is a workaround. Instead of selecting all the points covering the range you want to sample, just select the first and last keyframes of that range (e.g. the first and last keyframe, leaving out anything in between).

While investigating this yesterday, I realised that there is a workaround. Instead of selecting all the points covering the range you want to sample, just select the first and last keyframes of that range (e.g. the first and last keyframe, leaving out anything in between).

Thank you Peter and Joshua for the solution. That works perfectly. The reason why I need that is to mirror animation for characters. In order to mirror tons of keyframes on tons of function curves at one time, I've found that I have to sample all of the function curves before I mirror them.

Thank you Peter and Joshua for the solution. That works perfectly. The reason why I need that is to mirror animation for characters. In order to mirror tons of keyframes on tons of function curves at one time, I've found that I have to sample all of the function curves before I mirror them.

This issue was referenced by cda05639df

This issue was referenced by cda05639dff6e2c0d07035de14214911c3fb8255
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#53229
No description provided.