Added hotkeys to switch mode disfunctional / lost hotkeys in keymap #65064
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
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#65064
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?
Blender Version
Broken: version: 2.80 (sub 69), branch: master (modified), commit date: 2019-05-19 04:56, hash:
f2eef45200
Worked: (optional)
Short description of error
When i add hotkeys to the modes, then this hotkeys does simply nothing. I can't jump to edit mode with added hotkey alt 2 for example.
The second thing could be related, which i can't really test since the hotkeys are disfunctional anyways.
But when i add a hotkey to switch to pose mode, with a armature selected, and switch to a primitive then, and export the keymap, then the hotkey to switch to pose mode is destroyed in the exported keymap. The mode is missing. Vice versa too. When i export the keymap with the armature selected, then the modes for the mesh primitives, to switch to sculpt mode for example, are gone.
What is obvious in the keymap manager is, when i change the object type, then the mode button for not fitting modes turns blank. That's the hotkeys that are missing then after exporting the keymap ...
Exact steps for others to reproduce the error
Open Blender. Add Hotkey Alt 2 for Edit Mode, Hotkey Alt 4 for Sculpt Mode with the cube selected. Then add Alt 3 for Pose Mode with a armature selected. Try to use the hotkeys.
Now export the keymap with the cube selected. And have a look at the code.
testkeymap.py
Added subscriber: @tiles
Added subscriber: @ZedDB
At least for the first issue, the problem is that alt + 2 is already bound to something in the default keymap.
Just search for the
alt + 2
in the keymap any the conflicting key maps will show.Is the second issue still happening for you?
Ah sorry for overlooking that i use a hotkey that is already in use. Yes, it still happens. It doesn't matter what hotkey i assign here. The problem isn't the double, it's that the hotkey gets lost when saving the keymap.
I can confirm that the
Mode
for the pose keymap vanishes when selecting an object that doesn't have a pose mode.Added subscriber: @ideasman42
Added subscriber: @XSI-Guy
I am having the same issue even now with Blender 2.9 released version.
Has there been any progress on this issue ?
Added subscriber: @dfelinto
Hi @XSI-Guy this was triaged as a known issue, which is a way to document the current limitations of a module.
Anyone is welcome to help tackling it, but the UI module has no plans of working on it in the foreseeable future.
Added subscriber: @alok1974
I am trying to take a stab at this. Please note that the solutions that I propose down here might not be the best as I have started on Blender and its source code just a week ago!
Problem
While exporting, the
keymap
datais read from the
userpref` UI, which in turn is dynamically updated depending on the context of the selected object's mode . Object modes are culled for a context and thus modes available in one object context (like 'POSE' in armature) might not be available on another object context (mesh cube). This leads to blank UI and consequently <''> in the exported key config.First Solution
draw_keymaps()
inrna_keymap_ui.py
with a modification to not draw box.template_keymap_item_properties(kmi). This keymap exports will be read from the internal memory correctly.Pros
Cons
Second Solution (Tested and I have the code almost ready)
str != ""
in this case).Pros
Cons
I am looking to fix this, let me know if and how can I proceed @dfelinto, @ideasman42
Cheers!
This issue was referenced by
919558854d
Changed status from 'Confirmed' to: 'Resolved'
Thanks @ideasman42 !
I will learn a lot from the changes you made.