Post #2752: It is possible to create button when i click on it is toggle command

📋 Metadata

  • Author: Pinhead
  • Date: 2019-09-16 20:09:21
  • Type: question
  • Quality Score: 5/10
  • Replies (1): post_02755

🏷️ Tags

pie-menu hotkeys intermediate

  • Pie Menu Editor
  • Python Scripting
  • Custom Icons

💬 Content

It is possible to create button when i click on it is toggle command

 bpy.ops.view3d.toggle_xray()

to show on the viewport X-ray On / X-ray Off info.
Or even always show info on the HUD X-Ray ON / X-Ray Off


🔗 View on Blender Artists