Hello Alexey,
Our scripts currently run on Metashape 1.5.0
We are planning to update towards 1.6 soon but during last year not many updates were looking indipensable for us.
doc.save() seems to save the project, but actually not. Or it is saving but without any update (then are done ground classification, dem and ortho building, etc.)
I guess the crazyest thing in this story, is that I actually succeed to fix the problem, with the following code ...
__project_path = "directory/project.psx"
__archive_path = "directory/archive.psz"
doc = Metashape.app.document
doc.open(path=__archive_path, ignore_lock=True)
doc.save(path=__project_path)
doc.clear()
doc = Metashape.app.document
doc.open(path=__project_path, ignore_lock=True)
chunk = doc.chunk
doc.save()
It's strange, and this code looks horrible, but it works... An idea about where is the difference ?
Regards