Post #5109: Hey @Michael_Knubben, ~~you are right, PME Poll may be b
📋 Metadata
- Author: Pluglug
- Date: 2024-04-23 16:15:58
- Type:
bug_report - Quality Score: 8/10
🏷️ Tags
hotkeys conflicts advanced unsolved
⚙️ Related PME Features
- Pie Menu Editor
- Hotkey Configuration
💬 Content
Hey @Michael_Knubben, you are right, PME Poll may be broken. I just noticed some strange behaviour too, so I went back to earlier versions and discovered that Poll works in 3.6.5, but not since 4.0.
Edit: I apologize for my misunderstanding. The Poll functionality is working as expected.
Let me try to explain the situation, but it’s a bit complex. Feel free to skip this part if you’re not interested in the technical details.
In this case, I created two menus for the Tab key: one that only works when the active object is an Armature, and another that is called by a Click Drag action.
However, Blender has a built-in “Set Object Mode” operator already registered to the Tab key. This means there are three keys conflicting:
- PME Menu: “Armature Menu” → Tab Press
- PME Menu: “Tweak Menu” → Click Drag (Tweak)
- Blender Default: “Set Object Mode” → Tab Press
In this scenario, I discovered that the Set Object Mode operator is never called.


The following log shows what happens when I press “Tab” while a mesh object is selected:
In this case, I expect the “Set Object Mode” operator to be called. However, in the end, the “Armature Menu” is invoked.
operators.py:2018: Armature Menu
types.py:661: Polling Armature Menu
types.py:671: Poll method: <code object <module> at 0x000001D7C5429E70, file "<string>", line 1>
types.py:685: Poll result: False
operators.py:2018: Tweak Menu
types.py:661: Polling Tweak Menu
types.py:663: Default poll -> True
operators.py:2129: INVOKE, Tweak Menu (HOTKEY), TWEAK
operators.py:1857: START, Tweak Menu (HOTKEY)
operators.py:1769: HOLD - RELEASE, Tweak Menu (HOTKEY)
>>>Armature Menu Called
operators.py:1864: STOP, Tweak Menu (HOTKEY)
First, the “Armature Menu” is called. Here, the Poll returns False, and the menu is passed through. This is the expected behavior.
Next, the Tweak Menu is called.
This is because PME monitors the duration of the press and mouse movement during the press for the Click Drag (Tweak) and Hold modes.
Then, when the Drag or Hold is interrupted, instead of passing through, the menu operating in Press mode inside PME is called.
In other words, the “Armature Menu” is called again. And at this point, the Poll is designed not to work. That’s why this is the final result.
While it may seem like odd behavior, we should consider it to be working correctly according to the specifications. The root cause of this issue is the conflicting keymaps.
❤️ 1 likes