doc = Metashape.app.documentfor i in range(len(doc.chunks)): doc.save(path = "project_chunk_" + str(i) + ".psx", chunks = [doc.chunks[i]])