Hi so I'm having a strange issue with opening a new document using python. The command says it succeeds but nothing opens in my scene
here is what is happening...
import os
path = "path_to_file.psz"
os.path.exists(path)
#returns true
new_doc = PhotoScan.Document()
new_doc.open(path)
#now photoscan starts to load the file, this take about 3-4 seconds
#after it finishes it returns True, but the file is empty. It gets stranger...
#I can query the chunks inside of the scene even though I see nothing
chunks = PhotoScan.Chunks(new_doc)
#returns "main_chunk", "main_chunk_1"
#I can even Duplicate the chunk.
mainChunk = chunks[0]
dupChunk = PhotoScan.Chunks(new_doc).add(mainChunk)
If I query the chunks again I will get 3 chunks, not just 2 like before. If I save out this file it has a size of 1KB. What could possibly be going on here? I am almost certain this was working before.
Any help is greatly appreciated