Trying to get data related to which verts/edges/faces are selected in the UV editor, but have only been able to get results from the 3D Viewport. If the related data is accessible, I’d eventually like to make UI selections in the UV editor affect operations in the 3D viewport (such as an edge loop cut).
Example
It be nice, for example, to print out the values of the four vertices selected in the UV Editor (left panel) pictured above.
Where I’m at
It looks like selection related details are documented under MeshUVLoop. It’s unclear if MeshUVLoop.select would describe the UV vertex or the 3D view’s. But I’ve only been able to access data related to MeshUVLoopLayer anyway - which does not have a selection attribute.
Accessing MeshUVLoopLayer
import bpy
main_element = bpy.context.edit_object.data
main_element.uv_layers[0]
=> bpy.data.meshes['Cube'].uv_layers["UVMap"]