Post #1509: Hi all,

📋 Metadata

  • Author: bitinn
  • Date: 2018-07-29 07:35:31
  • Type: question
  • Quality Score: 6/10
  • Replies (1): post_01510

🏷️ Tags

pie-menu hotkeys intermediate unsolved

  • Pie Menu Editor
  • Property Editor
  • Custom Icons
  • Python Scripting

💬 Content

Hi all,

Just wondering, is it possible to call wm.context_toggle in a menu item with Pie Menu Editor. I want to emulate what I can do with Blender Input key-binding. But it seems like the closest option I got is to use “Property”, which will toggle the true/false value just like wm.context_toggle, but using Property doesn’t allow me to customize menu icon for some reasons?

(EDIT: My observation wasn’t quite correct, bpy.context.space_data.viewport_shade can have custom icon, but bpy.types.ToolSettings.use_snap couldn’t, both work under property mode, but behave rather differently.)

Thx!


🔗 View on Blender Artists