1
Python and Java API / Re: Externally Run Agisoft PhotoScan with Python
« on: June 16, 2017, 06:19:55 PM »
Thanks,
by running:
import subprocess
subprocess.run("C:\Program Files\Agisoft\PhotoScan Pro\photoscan.exe)
It opens PhotoScan but will not run my other python files automatically when I use:
subprocess.run("C:\Program Files\Agisoft\PhotoScan Pro\photoscan.exe <filename.filetype>")
However, using tools, run script I can manually run that same file. I read somewhere that the document class is blocked on code that occurs when agisoft is opening, so I am wondering if there is a workaround to this (ie. code beneath the subprocess function that opens photoscan that will then call the other python files I want to import photos, run the batch process, and export the model / or some command prompt input that lets me get around this issue).
Thanks again!
Sincerely,
cvernon3
by running:
import subprocess
subprocess.run("C:\Program Files\Agisoft\PhotoScan Pro\photoscan.exe)
It opens PhotoScan but will not run my other python files automatically when I use:
subprocess.run("C:\Program Files\Agisoft\PhotoScan Pro\photoscan.exe <filename.filetype>")
However, using tools, run script I can manually run that same file. I read somewhere that the document class is blocked on code that occurs when agisoft is opening, so I am wondering if there is a workaround to this (ie. code beneath the subprocess function that opens photoscan that will then call the other python files I want to import photos, run the batch process, and export the model / or some command prompt input that lets me get around this issue).
Thanks again!
Sincerely,
cvernon3