Expose "Negate Value" to the Keymap Preferences #111104

Closed
opened 2023-08-14 10:00:32 +02:00 by ntonistarak · 4 comments

System Information
Operating system: Win10, Win11, Linux
Graphics card: MSI 1060 3GB OC

Blender Version
Broken: (all versions)
Worked: (no version so far as i know)

Short description of error

  1. This is more like bug rather than proposing new feature
  2. because we have "Reset to Default Value" OP exposed,
  3. yet no option to remap this very handy UI operator.

NB:
I'm not 100% sure if this haven't already there yet. If it is, what's the name of the operator?
Thanks!

**System Information** Operating system: Win10, Win11, Linux Graphics card: MSI 1060 3GB OC **Blender Version** Broken: (all versions) Worked: (no version so far as i know) **Short description of error** 1. This is more like bug rather than proposing new feature 2. because we have "Reset to Default Value" OP exposed, 3. yet no option to remap this very handy UI operator. NB: I'm not 100% sure if this haven't already there yet. If it is, what's the name of the operator? Thanks!
ntonistarak added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-08-14 10:00:33 +02:00
Member

I'm pretty sure there's no such operator UI_OT_negate_value existing in blender... You might need to write some scripts to do so.

I'm pretty sure there's no such operator `UI_OT_negate_value` existing in blender... You might need to write some scripts to do so.
Member

@FriendlyUserBlendermann Hi, the - event is handled entirely inside the UI handler, so there's no such operator available. Could you give us a use case where you need to use - (or the remap of it) frequently? It could be better to have another key mapping software to send the - key when you want to press your custom key combinations.

@FriendlyUserBlendermann Hi, the `-` event is handled entirely inside the UI handler, so there's no such operator available. Could you give us a use case where you need to use `-` (or the remap of it) frequently? It could be better to have another key mapping software to send the `-` key when you want to press your custom key combinations.
YimingWu added
Status
Needs Information from User
Interest
User Interface
and removed
Status
Needs Triage
labels 2023-08-14 12:53:41 +02:00
Author

@ChengduLittleA Hi, Thanks for the relpy! The operator above is just an example of what i expected if it is existing in Blender. Well, the most use case in my workflow has to be inside of the Node Editors, where i need the exact opposite value, for example, to flip the direction of a any transformation. The underlining purpose of this activity is to check every possible combination just by negating the value and determine if i continue with the best value [or simply the best look].

And you are right, I indeed use external software called AutoHotKey to remap Alt + X to minus. But to be honest it does not feel intuitive at all to type one key just to type another. I also use an add-on that use Alt + X as their default keymap, so i have to remap it to 'minus' every Blender Update.

@ChengduLittleA Hi, Thanks for the relpy! The operator above is just an example of what i expected if it is existing in Blender. Well, the most use case in my workflow has to be inside of the Node Editors, where i need the exact opposite value, for example, to flip the direction of a any transformation. The underlining purpose of this activity is to check every possible combination just by negating the value and determine if i continue with the best value [or simply the best look]. And you are right, I indeed use external software called AutoHotKey to remap Alt + X to minus. But to be honest it does not feel intuitive at all to type one key just to type another. I also use an add-on that use Alt + X as their default keymap, so i have to remap it to 'minus' every Blender Update.
Member

Hi @FriendlyUserBlendermann , it is possible to use bpy.context.property(4.0+, note there are still some bugs like #109858) to access hovering property and you can make a small script as a custom operator to do that for you. Older blender could possibly use this method I think.

Since this isn't really a bug, will close this issue for now, but feel free to update your findings :D

Hi @FriendlyUserBlendermann , it is possible to use `bpy.context.property`(4.0+, note there are still some bugs like #109858) to access hovering property and you can make a small script as a custom operator to do that for you. Older blender could possibly use [this method](https://blenderartists.org/t/get-active-ui-element-under-mouse/1457709/2) I think. Since this isn't really a bug, will close this issue for now, but feel free to update your findings :D
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-08-15 04:47:14 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
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
2 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#111104
No description provided.