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

📋 Metadata

  • Author: bitinn
  • Date: 2018-07-29 08:01:06
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_01510

🏷️ Tags

pie-menu hotkeys intermediate solved

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

💬 Content

roaoao:

bpy.ops.wm.context_toggle

Ah thx, I was missing bpy.ops, no wonder why the panel doesn’t show up.

Great addon, save me a bunch of time modifying the menu script directly.

(by the way, using command mode did allow me to change icon, so perhaps it’s related to how bpy.types.ToolSettings.use_snap icon is determined in property mode)


🔗 View on Blender Artists