Post #4645: Understood. That is a very useful feature.

📋 Metadata

  • Author: Pluglug
  • Date: 2023-03-13 17:00:38
  • Type: bug_report
  • Quality Score: 8/10
  • Reply to: post_04641

🏷️ Tags

v1-20-x property scripting advanced solved

  • Property Editor
  • Python Scripting

💬 Content

Understood. That is a very useful feature.
It appears that this will allow PME Property to be called from a script.

Currently, when I press “Save to Add-on Preferences” I get an empty search list. I have fixed this.

I have confirmed that my fix works with Blender 3.3, 2.93, 2.83, but I am not an experienced programmer and do not fully understand the Pie Menu Editor source code or the Blender API. My modifications may cause unexpected errors. Therefore, I would like to share my modifications with the community, but would like to emphasize that you should use them at your own risk.

I have modified line 500 of ed_property.py from:

if tp is not ID and issubclass(tp, ID):

to:

if isinstance(tp, type) and issubclass(tp, ID) and tp is not ID:

Thank you.


❤️ 2 likes


🔗 View on Blender Artists