Hello PROBERT1968,
If you execute the following code while at least one camera is selected, it will print out the console the information about the markers which have projections on the selected images and their pinned/unpinned status:
import Metashape
chunk = Metashape.app.document.chunk
for camera in chunk.cameras:
if not camera.selected:
continue
for marker in chunk.markers:
if camera in marker.projections.keys():
coord = marker.projections[camera].coord
pinned = marker.projections[camera].pinned
valid = marker.projections[camera].valid
if pinned:
pinned = "pinned (green flag)"
else:
pinned = "unpinned (blue flag)"
if not valid:
valid = "blocked/"
else:
valid =""
output = "{:s}\t{:s}\t{:.3f}\t{:.3f}\t{:s}{:s}\n".format(camera.label, marker.label, coord.x, coord.y, valid, pinned)
print(output)
print("script finished")