Post #635:
Ho
📋 Metadata
- Author: roaoao
- Date: 2017-05-06 12:00:38
- Type:
answer - Quality Score: 9/10
- Reply to: post_00634
- Replies (1): post_00636
🏷️ Tags
pie-menu hotkeys configuration intermediate solved
⚙️ Related PME Features
- Pie Menu Editor
- Keymap configuration
- Poll methods
- Advanced settings
💬 Content
HokusPokus:
Hi again Roaoao.
Sorry for spamming your thread…
Np, feel free to ask any questions. I’ll try to help.
HokusPokus:
I’ve got the nested pie menu going and i’m slowly adding things to it, but i can’t seem to figure out if it’s even possible to switch Pie-menus depending on what mode you are in so there’s only menu-items for each mode showing?
Correct me if I’m wrong. You want to use the same hotkey to open different menus depending on the current mode. Right?
To achieve that you need to create a menu for each mode and select correct keymap for them:
For example, use “Object Non-modal” to open the menu in any object mode, “Sculpt” keymap to open the menu in Sculpt Mode, “Mesh” to open the menu in Mesh Edit Mode, etc.
For “sub modes” like Face Select Mode “Mesh” keymap is not enough. To open the menu only in Face Mode you have to change “poll” method. You can find it in menu’s Advanced settings (1st yellow line):
Vertex Mode:
return C.scene.tool_settings.mesh_select_mode[0]
Edge Mode:
return C.scene.tool_settings.mesh_select_mode[1]
Face Mode:
return C.scene.tool_settings.mesh_select_mode[2]
Let me know what modes you are going to use, If you need any help with keymaps or poll methods.