I have 80 .psx files, each containing multiple chunks. Instead of opening each file individually and running a batch job, is there a way to automatically do this via a python script?
I'm thinking that it would be as simple as iterating over all of the psx files in a folder and initiating the batch, but I can't seem to find the correct function in the API to do this. I can see resume batch and pause batch, but not start batch.. I'm sure I'm just missing a basic detail.
import os, MetaShape
dir_projects = 'E:/...//' #Directory folders with pictures
foldernames = os.listdir(dir_projects)
for i in range (0,len(foldernames)):
doc=PhotoScan.app.document
chunk = doc.addChunk()
# Implement Batch Here
doc.save()
doc.clear()