import Metashape, osfor camera in Metashape.app.document.chunk.cameras: if "DJI" in os.path.basename(camera.photo.path): camera.enabled = False