Post #4824: Double nevermind: So, it’s the right code, but simply doesn’t seem to work? Has

📋 Metadata

🏷️ Tags

python-scripting intermediate unsolved

  • Python Scripting
  • Pie Menu Editor
  • Poll Methods

💬 Content

Double nevermind: So, it’s the right code, but simply doesn’t seem to work? Has anyone tried this?

Nevermind, I had a typo :smiley:

Does anyone know what the UV equivalent is to this Poll Method: return C.scene.tool_settings.mesh_select_mode[0]?

I tried replacing mesh with uv, which didn’t work, but otherwise don’t really know where to look this up, as even copying the python operator gives you a result that doesn’t match the one up there.

Hmm, according to this it is uv_select_mode, but using it returns an error: https://docs.blender.org/api/current/bpy.types.ToolSettings.html#bpy.types.ToolSettings.uv_select_mode


🔗 View on Blender Artists