Select Handles operator doesn't remember preferences from previous call #119487

Closed
opened 2024-03-14 21:30:33 +01:00 by Nika Kutsniashvili · 9 comments
Contributor

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 551.23

Blender Version
Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: 9be62e85b727
Worked: (newest version of Blender that worked as expected)

Short description of error
Operator preferences in Blender are saved after first use. You can change them in redo panel and next time you call that operator it uses those settings.

This doesn't work on Select Handles operator in Graph Editor. Every time it's called it resets properties and you have to change them again. It's impossible to set it to always only select right handles and depend on it.

Exact steps for others to reproduce the error

  1. Select all keys in graph editor
  2. Call "Select Handles" operator
  3. In redo panel change properties so that only right handles are selected and keys and left deselected
  4. Deselect and try calling the operator again

It will ignore your settings and will revert to default.

**System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 551.23 **Blender Version** Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: `9be62e85b727` Worked: (newest version of Blender that worked as expected) **Short description of error** Operator preferences in Blender are saved after first use. You can change them in redo panel and next time you call that operator it uses those settings. This doesn't work on Select Handles operator in Graph Editor. Every time it's called it resets properties and you have to change them again. It's impossible to set it to always only select right handles and depend on it. **Exact steps for others to reproduce the error** 1. Select all keys in graph editor 2. Call "Select Handles" operator 3. In redo panel change properties so that only right handles are selected and keys and left deselected 4. Deselect and try calling the operator again It will ignore your settings and will revert to default.
Nika Kutsniashvili added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-03-14 21:30:34 +01:00
Member

Thanks for the report. Can confirm.

Thanks for the report. Can confirm.
Member

Actually for "select handles" and "select keys", these properties are hardcoded: https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_ui/space_graph.py#L229-L230

We can remove them for "select handles" at least

Actually for "select handles" and "select keys", these properties are hardcoded: https://projects.blender.org/blender/blender/src/branch/main/scripts/startup/bl_ui/space_graph.py#L229-L230 We can remove them for "select handles" at least
Pratik Borhade self-assigned this 2024-03-15 06:16:01 +01:00
Pratik Borhade removed their assignment 2024-03-15 06:16:40 +01:00
Member

We can remove them for "select handles" at least

This will cause some noise in following case:
If you call "select keys", it will set both handles to deselect. After this, calling "select handle" won't select either of the handle.
So perhaps make sense to keep the current behavior intact.

One way to fix this is make separate operator for "select keys"

cc @nathanvegdahl @ChrisLend

> We can remove them for "select handles" at least This will cause some noise in following case: If you call "select keys", it will set both handles to `deselect`. After this, calling "select handle" won't select either of the handle. So perhaps make sense to keep the current behavior intact. One way to fix this is make separate operator for "select keys" cc @nathanvegdahl @ChrisLend
Pratik Borhade added
Status
Needs Info from Developers
and removed
Status
Confirmed
labels 2024-03-15 06:22:21 +01:00
Author
Contributor

@PratikPB2123 Indeed most logical would be to decouple those two operators, so that case you mentioned doesn't happen in practice. Otherwise current behavior isn't too practical. For mograph work I constantly needed to select right handles and deselect everything and it's quite difficult.

@PratikPB2123 Indeed most logical would be to decouple those two operators, so that case you mentioned doesn't happen in practice. Otherwise current behavior isn't too practical. For mograph work I constantly needed to select right handles and deselect everything and it's quite difficult.
Member

Right. For now you can use keymap like this as workaround: image

Right. For now you can use keymap like this as workaround: ![image](/attachments/be53da62-544e-42f8-b480-e23d049fde27)
Member

Sorry for the delayed response on this!

So the issue is basically that there is a single operator Select Key / Handles that is quite flexible, and then the menu items Select Handles and Select Keys use that operator to create hard-coded actions. Conceptually, those menu entries are supposed to only do one thing, and they're just exploiting the existence of this more flexible operator to do that one thing.

If you want different behavior, you can call the main Select Key / Handles operator directly, or make hot keys for it as suggested by @PratikPB2123

This does make me think, however, that we should put the main Select Key / Handles operator itself in the menu as well.

Sorry for the delayed response on this! So the issue is basically that there is a single operator `Select Key / Handles` that is quite flexible, and then the menu items `Select Handles` and `Select Keys` use that operator to create hard-coded actions. Conceptually, those menu entries are supposed to only do one thing, and they're just exploiting the existence of this more flexible operator to do that one thing. If you want different behavior, you can call the main `Select Key / Handles` operator directly, or make hot keys for it as suggested by @PratikPB2123 This does make me think, however, that we should put the main `Select Key / Handles` operator itself in the menu as well.
Member

To expand on what I said above:

One of my assumptions in the design of this operator is that doing these sorts of quick-select actions is something that people will want quick hotkeys for, rather than calling an operator and then adjusting its parameters every time. So the intention was to create an operator that was flexible enough for people to create whatever behaviors they want for their own hot keys, etc., for the selection actions they do most often.

So if someone does "select left/right handles" often, they would use this operator to create hotkeys for those actions, rather than call Select Handles and adjust the parameters for left/right every time.

I do acknowledge, however, that this isn't great if a user instead wants e.g. menu items for their specific custom actions, since it's a lot more involved for a user to create menu items than hot keys.

To expand on what I said above: One of my assumptions in the design of this operator is that doing these sorts of quick-select actions is something that people will want quick hotkeys for, rather than calling an operator and then adjusting its parameters every time. So the intention was to create an operator that was flexible enough for people to create whatever behaviors they want for their own hot keys, etc., for the selection actions they do most often. So if someone does "select left/right handles" often, they would use this operator to create hotkeys for those actions, rather than call `Select Handles` and adjust the parameters for left/right every time. I do acknowledge, however, that this isn't great if a user instead wants e.g. menu items for their specific custom actions, since it's a lot more involved for a user to create menu items than hot keys.
Member

Yes, make sense to create custom keymap entry for different "handle/key selection" combination.

I think we can close this report.

Yes, make sense to create custom keymap entry for different "handle/key selection" combination. I think we can close this report.
Member

Yeah, I think it's fine to close the report, since this isn't a bug per se and is working as designed.

Nevertheless, I think the feedback here from @nickberckley is valuable, and suggests there may be usage patterns we aren't accommodating well enough yet. So it's definitely something to keep in mind for the future.

Yeah, I think it's fine to close the report, since this isn't a bug per se and is working as designed. Nevertheless, I think the feedback here from @nickberckley is valuable, and suggests there may be usage patterns we aren't accommodating well enough yet. So it's definitely something to keep in mind for the future.
Blender Bot added
Status
Archived
and removed
Status
Needs Info from Developers
labels 2024-04-11 10:45:50 +02: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#119487
No description provided.