I'm trying to get the path to the currently opened PSX file, so that when enabling network processing, I can avoid having to prompt the user for the PSX path and root directory:
path = Metashape.app.getOpenFileName("Specify path to the PSX document:")
root = Metashape.app.getExistingDirectory("Specify network root path:")
batch_id = client.createBatch(path[len(root):], network_tasks)
I was able to get the server IP that is specified in network preferences with:
netHost = str(Metashape.app.settings.network_host)
However, I'm unsure how to get those paths. I'm assuming they are attributes in Metashape.app.document? They are not listed in the documentation.
Alternatively, is there another way to start the network batch on the current document?
Thanks!