chunk = PhotoScan.app.document.chunkstep = PhotoScan.app.getInt("Specify the selection step:" ,5)index = 1for camera in chunk.cameras: if not (index % step): camera.selected = True else: camera.selected = False index += 1
chunk = PhotoScan.app.document.chunksourcepath = "/Volumes/G-Tech/run_list1.txt"file = open(sourcepath, "rt")photoslist = " ".join(file.readlines()).split()file.close()#print (photoslist[0])#print ("\n")#print (chunk.cameras[0].label.split("'")[0])for camera in chunk.cameras: if not (camera.label.split("'")[0] in photoslist): camera.selected = True else: camera.selected = False
if camera.label in photoslist: