automated processing of shots from my camera array. This snippet was previously taking the last of a series of copied chunks (adjusting gradual selection until a certain % of original data is left, iteratively), and copying the final chunk to a new doc ("doc2"), and saving just that doc out.
...
doc2 = PhotoScan.Document()
doc2.addChunk(chunk.copy())
doc2.save(C:\\Path\\to\\file.psz")
However, addChunk now seems to exclusively make new chunks, and chunk.copy doesn't seem to put the copy in the new doc. I can't seem to find the method to copy the active chunk into a new "Document".