How can i retrieve the list of selected verts/edges/faces after selecting the shortest_path_select() ?
I can see in the viewport that the correct faces are being selected, but from code i cannot see them selected, neither from the bmesh neither from the mesh itself.
As you can see in the image, after the call to bpy.ops.mesh.shortest_path_select() i see the faces selected in the viewport, but from code only the face 655 of the mesh results selected.
After calling the function i DO call bmesh.update_edit_mesh(me) but still it seems not to work as wanted.
Here a snippet of code driving this example
bpy.ops.mesh.shortest_path_select()
bmesh.update_edit_mesh(me)
self.report({"INFO"}, f"me 655: {me.polygons[655].select}")
self.report({"INFO"}, f"me 380: {me.polygons[380].select}")
self.report({"INFO"}, f"me 372: {me.polygons[372].select}")
self.report({"INFO"}, f"me 947: {me.polygons[947].select}")
self.report({"INFO"}, f"me 2200: {me.polygons[2200].select}")
self.report({"INFO"}, f"")
self.report({"INFO"}, f"bm 655: {bm.faces[655].select}")
self.report({"INFO"}, f"bm 380: {bm.faces[380].select}")
self.report({"INFO"}, f"bm 372: {bm.faces[372].select}")
self.report({"INFO"}, f"bm 947: {bm.faces[947].select}")
self.report({"INFO"}, f"bm 2200: {bm.faces[2200].select}")
self.report({"INFO"}, f"")
I don't know how to get the list of selected faces after the shortest path calculation. Any hep?


