Forum

Author Topic: Calling a batch processes .xml from python  (Read 7615 times)

monsterchrist

  • Newbie
  • *
  • Posts: 8
    • View Profile
Calling a batch processes .xml from python
« on: December 03, 2018, 07:05:08 AM »
Howdy folks,

I am wondering if there's a way to load a batch process .xml from a python script.
  • I have a bunch of projects that live in their own folders.
  • From an empty scene, I'd like to run a script that looks at the folder with the xml's, loop though them and copy the .xmls over to a folder marked "done". 
  • I'd like to set up the batch of jobs specific to each project, save the xml file in a folder of jobs ready to be processed.
With some tinkering, I can write the script to do all the os stuff,  but I can't find reference to loading a batch job process .xml in the api documentation.

Thanks!

monsterchrist

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Calling a batch processes .xml from python
« Reply #1 on: December 03, 2018, 07:50:13 AM »
Looks like there's a reply here

http://www.agisoft.com/forum/index.php?topic=7529.msg36060#msg36060

Is it still the case that we cant call the batch job without parsing .xml into the python script? 

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Calling a batch processes .xml from python
« Reply #2 on: December 03, 2018, 01:09:21 PM »
Hello monsterchrist,

Currently calling the external XML for batch processing from command-line or Python script is not supported, so parsing of the XML file seems to be the only way in the current release version.
Best regards,
Alexey Pasumansky,
Agisoft LLC

monsterchrist

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Calling a batch processes .xml from python
« Reply #3 on: December 07, 2018, 03:33:07 AM »
Awesome. Thanks Alexey for clearing that up.