Thanks Alexey. Is that supposed to iterate through all chunks in doc? When I run the following, only getting results for first chunk... how do I make it go through all chunks and use the name for output filenames?
doc = PhotoScan.app.document
proj = PhotoScan.Matrix([[-1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, -1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]) #Bottom XY
for chunk in doc.chunks:
filename = chunk.label
pathd = "C:\photoscan\DEM_"+filename+".tif"
pathm = "C:\photoscan\Mos_"+filename+".tif"
chunk.exportDem(pathd, dx=1, dy=1, projection = proj)
chunk.exportOrthophoto(pathm, projection = proj, blending="mosaic", dx=1, dy=1)