Post #1073: ![](https://blenderartists.org/user_avatar/blenderartists.org/panosz/48/31678_2.

📋 Metadata

  • Author: roaoao
  • Date: 2017-10-26 01:12:12
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_01072

🏷️ Tags

conflicts intermediate solved

  • Pie Menu Editor
  • Custom Python Scripting
  • Tag System
  • Property Editor
  • Modal Editor

💬 Content

panosz:

  1. is somehow fixed since it still blocks but you can exit by pressing the same hotkey thus it doesn’t mess-up the workflow. For example if you have a “zoom view” in a modal and press spacebar - middle mouse to zoom, accidentally release spacebar before middle mouse then it blocks. Fortunately you can press spacebar again, it is under your thumb :), et voila you’re not blocked anymore!

Yep, looks like the command assigned to MMB blocks the UI.
I’ll try to add some feature in Blender 2.8 to fix this issue. Let’s hope the devs will accept it.

panosz:

in #1010 you advised me correctly and it solved my problem. I want to use the same property but for a tag this time.
my current command to enable the tag is
Code:
bpy.ops.pme.pm_enable_by_tag(tag=‘BLENDERView’, enable=True)
and in property last time you advised this
Code:
prefs().pie_menus[“Physics_Panel Physics”].enabled
I tried all kinds of syntax but with no luck. Any help will be greatly appreciated.

Try this code in Custom tab. Use tag’s name as the name of the slot/button:

pms = [pm for pm in prefs().pie_menus if pm.has_tag(text) and  pm.enabled]; enable = len(pms) == 0; icon='CHECKBOX_DEHLT' if enable  else 'CHECKBOX_HLT'; operator(L, "pme.pm_enable_by_tag", text, icon,  tag=text, enable=enable)

Where text is the name of the slot/button.

Leafar:

I don´t get this menu to work with TEXT object type, why? Anyone else works perfectly.

Try to rename Object: TEXT to Object: FONT


🔗 View on Blender Artists