📋 Metadata
- Author: Michael_Knubben
- Date: 2023-09-07 12:01:19
- Type:
question - Reply to: post_04825
- Replies (1): post_04827
💬 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