Hi,
I’ve been trying to create a script that allows me to open multiple photos simultaneously in Metashape and advance through them together (synchronized). Currently, I can open multiple photos, but advancing to the next one only works individually.
Here’s the part of my script where I try to advance all selected photos:
for camera in current_cameras:
try:
current_index = all_cameras.index(camera)
next_camera = all_cameras[current_index + 1]
camera.selected = False
next_camera.selected = True
except IndexError:
Metashape.app.messageBox("Reached the end of the photo list.")
break
It works, but only advances one camera at a time. Is there a built-in function or better approach to synchronize advancing for all opened photos at once?
Thanks in advance for any suggestions!