Post #4192: You can also add options to make the side area remember if the N and T panel is

πŸ“‹ Metadata

  • Author: Pinhead
  • Date: 2022-02-02 10:28:15
  • Type: bug_report
  • Quality Score: 7/10
  • Reply to: post_04162

🏷️ Tags

v1-20-x pie-menu hotkeys advanced unsolved

  • Pie Menu Editor
  • Python Scripting
  • Poll Functions

πŸ’¬ Content

You can also add options to make the side area remember if the N and T panel is on or off?

EDIT:

When i use (mostly by mistake) pie menu with β€œreturn not C.region_data.is_perspective;” in for example uvwindow i have this error:

pme.json (4.5 KB)

pme2.json (3.8 KB)

Python: Traceback (most recent call last):
  File "C:\Users\radi0n\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\pie_menu_editor\operators.py", line 2034, in invoke
    not cpm.poll(self.__class__, context):
  File "C:\Users\radi0n\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\pie_menu_editor\types.py", line 676, in poll
    return exec_globals["poll"](cls, BU.bl_context)
  File "<string>", line 1, in poll
AttributeError: 'NoneType' object has no attribute 'is_perspective'

location: <unknown location>:-1

πŸ”— View on Blender Artists