Holding down "R" causes rapid switching between rotate and trackball rotate #40537

Closed
opened 2014-06-08 10:29:33 +02:00 by KiJeon · 16 comments

System Information
Windows 8

Blender Version
Broken: For every Blender version I've used, including the latest 2.70.5.

Short description of error
I have my hotkeys setup so pressing G/R/S activates the transform mode and letting go of G/R/S confirms. G and S keys don't have problems. However, holding down R key causes rapid switching between the regular rotate and trackball rotate modes.
My hotkey configuration for testing: KJ_BlenderCustomKeys_06.08.2014.py
Side note: There doesn't seem to be a hotkey configuration option for activating/confirming trackball rotation.

Exact steps for others to reproduce the error

  1. Load up my custom hotkeys.
  2. Hold down R to rotate.
**System Information** Windows 8 **Blender Version** Broken: For every Blender version I've used, including the latest 2.70.5. **Short description of error** I have my hotkeys setup so pressing G/R/S activates the transform mode and letting go of G/R/S confirms. G and S keys don't have problems. However, holding down R key causes rapid switching between the regular rotate and trackball rotate modes. My hotkey configuration for testing: [KJ_BlenderCustomKeys_06.08.2014.py](https://archive.blender.org/developer/F93499/KJ_BlenderCustomKeys_06.08.2014.py) Side note: There doesn't seem to be a hotkey configuration option for activating/confirming trackball rotation. **Exact steps for others to reproduce the error** 1. Load up my custom hotkeys. 2. Hold down R to rotate.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @0o00o0oo

Added subscriber: @0o00o0oo

Added subscriber: @mont29

Added subscriber: @mont29

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Currently blender's event system just doesn't handle this case.

Added to todo
http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/UserInterface#Events

Currently blender's event system just doesn't handle this case. Added to todo http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/UserInterface#Events
Author

Whoa, noticed a bug. I'm guessing it's related to this one so I didn't create a new bug item.

The - [x] key also does a similar thing when held down in mesh edit mode, though I wasn't able to replicate this with any other objects.
I did find tracking markers do the same thing though.

To replicate

  1. Load my hotkey configuration.

  2. Select a mesh object and go into Edit mode.

  3. Hold down - and move mouse around.
    also

  4. Select a tracking marker.

  5. Hold down - and move mouse around.

Side note
Older versions, like 2.68a did not have this problem.

Whoa, noticed a bug. I'm guessing it's related to this one so I didn't create a new bug item. The - [x] key also does a similar thing when held down in mesh edit mode, though I wasn't able to replicate this with any other objects. I did find tracking markers do the same thing though. **To replicate** 1. Load my hotkey configuration. 2. Select a mesh object and go into Edit mode. 3. Hold down - [x] and move mouse around. also 2. Select a tracking marker. 3. Hold down - [x] and move mouse around. **Side note** Older versions, like 2.68a did not have this problem.

Its same issue, blenders main event system doesn't detect key-repeat events, though we do for the game engine.

Its same issue, blenders main event system doesn't detect key-repeat events, though we do for the game engine.
Author

I wanted to further add that the rapid switching for the "G" key seems to be with the "edge slide" function. Again, this did not happen with 2.68a.

I understand this has something to do with "event system", but until that's resolved, may I suggest adding hotkey entries for trackball rotation and edge slide?

I wanted to further add that the rapid switching for the "G" key seems to be with the "edge slide" function. Again, this did not happen with 2.68a. I understand this has something to do with "event system", but until that's resolved, may I suggest adding hotkey entries for trackball rotation and edge slide?

Added subscriber: @AnthonyEdlin

Added subscriber: @AnthonyEdlin

Hi,

The double tap for edge slide and trackball are both hard coded into the translate and rotate event checking code. This implementation of these features is probably not the greatest but it's what was done.

If you remove the G press key (kmi = km.keymap_items.new_modal('TRANSLATE', 'G', 'PRESS') from the transform modal map it should work as I think you want for translation in edit mode and object mode.

Unfortunately, this does not work with the rotate key because not only is it hard coded in the transform modal event handling but also in non mapped event handling of the transform operator. So even if you remove the R key binding from the modal keys it will continue to have the problem. So, one way to get what you want even with this problem is to bind the R press key of the modal map to something that doesn't do anything important while rotating, such as "Select next Edge Slide Edge". This will make sure the key is handled as a modal event but doesn't actually do anything.

Now I think you can get the behaviour you want even though it's a pretty silly method of getting there. Good luck.

Hi, The double tap for edge slide and trackball are both hard coded into the translate and rotate event checking code. This implementation of these features is probably not the greatest but it's what was done. If you remove the G press key (kmi = km.keymap_items.new_modal('TRANSLATE', 'G', 'PRESS') from the transform modal map it should work as I think you want for translation in edit mode and object mode. Unfortunately, this does not work with the rotate key because not only is it hard coded in the transform modal event handling but also in non mapped event handling of the transform operator. So even if you remove the R key binding from the modal keys it will continue to have the problem. So, one way to get what you want even with this problem is to bind the R press key of the modal map to something that doesn't do anything important while rotating, such as "Select next Edge Slide Edge". This will make sure the key is handled as a modal event but doesn't actually do anything. Now I think you can get the behaviour you want even though it's a pretty silly method of getting there. Good luck.

Added subscriber: @michaelknubben

Added subscriber: @michaelknubben
Author

Thanks for taking the time to explain, krash. I can't say I understand your instructions.. perhaps it's a bit too technical for me, but I appreciate it.

I am aware that the hotkeys are hard-coded. I listed them for #37520, which suggests removing hard-coded hotkeys altogether.

Thanks for taking the time to explain, krash. I can't say I understand your instructions.. perhaps it's a bit too technical for me, but I appreciate it. I am aware that the hotkeys are hard-coded. I listed them for #37520, which suggests removing hard-coded hotkeys altogether.
Eitan Traurig self-assigned this 2019-06-06 13:51:16 +02:00
Member

This isn't related to the custom hotkeys it happens with factory hotkeys.

This isn't related to the custom hotkeys it happens with factory hotkeys.
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

Closing this is a todo, and is linked from the todo task.

Closing this is a todo, and is linked from the todo task.
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
7 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#40537
No description provided.