Hi there,
I have a question about the correct use of the Document.save() function in 1.4.x. In a script, I’m creating a new PhotoScan.Document() instance, and saving it to a path:
current_doc = PhotoScan.Document()
current_chunk = current_doc.chunk
if current_chunk == None:
current_chunk = current_doc.addChunk()
current_doc.save(path=project_doc, chunks=[current_chunk])
The script aligns the images (and saves, using the same command), and then tries to build a DEM, but I keep getting an “Empty Frame Path: Please save in .PSX format” error. I’ve tried just using current_doc.save(), using PhotoScan.app.document as current_doc, and pretty much every permutation of .save() I can think of, without success.
I’ve noticed that, if I’m just opening a previously created document, using .save() works the way I would expect, but when I’ve created a new document and saved it using (path=…), it doesn’t.
How can I create a new document and save it in a way that .buildDem() can recognize?
Thanks! And apologies if this is a novice question.