Next/Previous Keyframe breaks when "Show Only Selected" is disabled #93944

Open
opened 2021-12-10 16:51:56 +01:00 by Sybren A. Stüvel · 7 comments

System Information
Operating system: Linux-5.4.0-91-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.91.03

Blender Version
Broken: version: 3.1.0 Alpha, branch: master, hash: 60a9703de8
Worked: never, 2.79 also had this problem in a way (but slightly different due to limitations of its dope sheet). 2.83 has the exact same problem described here.

Short description of error
Next/Previous Keyframe ( {key up} and {key down} in the dope sheet) do not jump to the next/previous key shown, but to the next/previous key of the active object.

In other words, it sort of works as if "Show Only Selected" is always enabled, but then even more strict, only responding to the keys of the active object. This can probably be tracked down to the dope sheet only showing animation data of the active object back in the old ≤2.79 days.

Exact steps for others to reproduce the error

  1. Open the attached blend file.
  2. See that the current frame is set to frame 1.
  3. While hovering with the mouse over the dope sheet, press the up arrow {key up}.
  4. See the message "No more keyframes to jump to in this direction". Expected behaviour: it would jump to the next keyframe shown, which is at frame 5.
  5. Click on the Cube to make it active + selected.
  6. While hovering with the mouse over the dope sheet, press the up arrow {key up}.
  7. See that it jumps to frame 10, which is the next keyframe in the Cube's animation. Expected behaviour: it would jump to the next keyframe shown, which is at frame 5.

image.png

next-prev-keyframe-selection-issue.blend

**System Information** Operating system: Linux-5.4.0-91-generic-x86_64-with-glibc2.31 64 Bits Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.91.03 **Blender Version** Broken: version: 3.1.0 Alpha, branch: master, hash: `60a9703de8` Worked: never, 2.79 also had this problem in a way (but slightly different due to limitations of its dope sheet). 2.83 has the exact same problem described here. **Short description of error** Next/Previous Keyframe ( {key up} and {key down} in the dope sheet) do not jump to the next/previous key **shown**, but to the next/previous key of the **active object**. In other words, it sort of works as if "Show Only Selected" is always enabled, but then even more strict, only responding to the keys of the active object. This can probably be tracked down to the dope sheet only showing animation data of the active object back in the old ≤2.79 days. **Exact steps for others to reproduce the error** 1. Open the attached blend file. 2. See that the current frame is set to frame 1. 3. While hovering with the mouse over the dope sheet, press the up arrow {key up}. 4. See the message "No more keyframes to jump to in this direction". *Expected behaviour:* it would jump to the next keyframe shown, which is at frame 5. 5. Click on the Cube to make it active + selected. 6. While hovering with the mouse over the dope sheet, press the up arrow {key up}. 7. See that it jumps to frame 10, which is the next keyframe in the Cube's animation. *Expected behaviour:* it would jump to the next keyframe shown, which is at frame 5. ![image.png](https://archive.blender.org/developer/F12727458/image.png) [next-prev-keyframe-selection-issue.blend](https://archive.blender.org/developer/F12727463/next-prev-keyframe-selection-issue.blend)
Author
Member

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Dan McLaughlin was assigned by Sybren A. Stüvel 2021-12-10 16:57:00 +01:00
Author
Member

Added subscriber: @DrMc

Added subscriber: @DrMc
Author
Member

Assigning to @DrMc as he's looking for a task to work on. I think this could be a nice one to look at. As a starting point, check the keyframe_jump_exec() function. It determines some filtering options (ads.filterflag), which are then used to find the keyframes to jump over. I'm guessing that these are set incorrectly.

Assigning to @DrMc as he's looking for a task to work on. I think this could be a nice one to look at. As a starting point, check the `keyframe_jump_exec()` function. It determines some filtering options (`ads.filterflag`), which are then used to find the keyframes to jump over. I'm guessing that these are set incorrectly.
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

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

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

Hi @DrMc , how are things going?

Hi @DrMc , how are things going?

Update over on the chat channel

Update over on the chat channel
Philipp Oeser removed the
Interest
Animation & Rigging
label 2023-02-09 14:35:26 +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
3 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#93944
No description provided.