Post #784: ![](https://blenderartists.org/user_avatar/blenderartists.org/emboo2/48/567944_2

📋 Metadata

  • Author: roaoao
  • Date: 2017-08-15 10:39:09
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_00783

🏷️ Tags

v1-13-6 pie-menu hotkeys configuration intermediate solved

  • Pie Menu Editor
  • Poll method
  • Context sensitivity
  • Python scripting

💬 Content

emboo2:

For context sensitivity, is it possible to have a single hotkey to call a unique contextual menu depending on object type?

Yes, you can use poll method for this. For example use this code to call menu only for mesh objects:

return C.active_object and C.active_object.type == 'MESH'

You can find all object types here.

Make sure that you copied this PME 1.13.6 fix (pme1.13.6_fix_poll.zip (22.3 KB)) to pie_menu_editor/ folder.


🔗 View on Blender Artists