Post #4826: : post_04827
🏷️ Tags
pie-menu python-scripting intermediate unsolved
⚙️ Related PME Features
- Pie Menu Editor
- Python Scripting
- Poll Methods
💬 Content
Pluglug:
C.scene.tool_settings.uv_select_mode
I must still be missing the point, because I tried this without succes:

You’re right in that I was using numbers as in the mesh_select, but as you can see the names don’t appear to work here either, and numbers return confusing results.
According to the link at least VERTEX should be a proper attribute, but I’m not succeeding in using it in the poll method. I’ll try your code now, but do still wonder why my code won’t work. I based it on the mesh polling that PME comes with!
edit - using your code I get the same result:
Full error
File "C:\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\scripts\addons\pie_menu_editor\operators.py", line 2032, in invoke
not cpm.poll(self.__class__, context):
File "C:\Blender\stable\blender-3.6.0+stable.c7fc78b81ecb\3.6\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
NameError: name 'EDGE' is not defined```
Only the most relevant part:
NameError: name 'EDGE' is not defined
❤️ 1 likes