Post #636: ![](https://blenderartists.org/user_avatar/blenderartists.org/roaoao/48/37600_2.

📋 Metadata

  • Author: HokusPokus
  • Date: 2017-05-06 16:49:38
  • Type: discussion
  • Quality Score: 7/10
  • Reply to: post_00635

🏷️ Tags

hotkeys configuration beginner solved

  • Pie Menu Editor
  • Hotkey Configuration
  • Poll Methods
  • Modal Keymaps

💬 Content

roaoao:

Np, feel free to ask any questions. I’ll try to help.
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.

Spot on Roaoao!
Actually i was there sniffing about those lines but couldn’t make any sense of it as i couldn’t find the separate modes… writing “Mesh” wihtout quotes didn’t reveal anything …but writing “Mes” did… :slight_smile:

Edit: removed the semi-question here. The function was different than i thought, but more elegant. Much appreciated help though! Thanks.

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]

I went into consolemode and figured out how to use the vert, edge and Face snippets of py.code but these things would have taken me alot longer to figure out. Thanks again

Let me know what modes you are going to use, If you need any help with keymaps or poll methods.

Much appreciated offer… I’ll try to minimize the questions though to one’s that really count… It’s a somewhat steep tool to start using for someone with sparse knowledge in Python coding and the general API of Blender, counting all options and menu’s there is but with all this excellent help you put into this section, it’s like a summers breeze.

I think many more users would pick this tool up if they saw what advanced type of Pie menu it’s capable of and how fast Blender gets with it.
At a first glance on your video’s and before i purchased it i didn’t expect half of all this and i bought it by chance as it was cheap …now it feels like i have robbed someone of their livelyhood :smiley:

I’m using a Cintiq 13 HD atm and having this Piemenu that switches content depending on Mode makes the add-on even more indispensable… using a fullsize keyboard in conjunction for all keycommands is tedious and you want all available screen realestate for the 3D model or painting… Gaining access to almost all functions by using nearly only the two buttons on the stylus pen is crazy.

Take care.


🔗 View on Blender Artists