Post #1051: Wa

📋 Metadata

🏷️ Tags

python-scripting beginner solved

  • Python Scripting
  • Macro Editor

💬 Content

Way2Close:

It didn’t work it says NameError: name ‘prefs’ is not defined
Am I doing something wrong? haha

Way2Close:

I want to run it from a custom addon, not through pme,
the code i posted was run from the text editor in blender.

In this case you need to import the function manually:

from pie_menu_editor.addon import prefs

🔗 View on Blender Artists