Post #1051:
Wa
📋 Metadata
- Author: roaoao
- Date: 2017-10-16 06:03:48
- Type:
answer - Quality Score: 7/10
- Reply to: post_01050
- Replies (1): post_01052
🏷️ Tags
python-scripting beginner solved
⚙️ Related PME Features
- 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