Forum

Author Topic: Using file XML Batch in script Python  (Read 2768 times)

felipe

  • Newbie
  • *
  • Posts: 5
    • View Profile
Using file XML Batch in script Python
« on: August 08, 2017, 10:52:53 PM »
Hello,

I´m trying using the file Batch(XML) in script Python, but method findBatch not working as imagined.


Code: [Select]
import PhotoScan
chunk = PhotoScan.app.document.addChunk()

chunk.addPhotos(["C:\img\DSC09957.JPG","C:\img\DSC09959.JPG"])
chunk.loadReference ("C:\img\GEOAG_CAM_DIR_100.txt" , PhotoScan.ReferenceFormat.ReferenceFormatCSV, '[n|x|y|z|XYZ|a|b|c|ABC]', ' ')

batch_id = chunk.findBatch("C:\img\BatchPhotoscan_F.xml")
client.resumeBatch(batch_id)



This process is possible?

Thanks!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Using file XML Batch in script Python
« Reply #1 on: August 09, 2017, 11:31:06 AM »
Hello felipe,

These batch commands that you are referring to are related to the network processing.

At the moment it is not possible to load XML file with the processing tasks directly via Python, unless you script XML parsing.
Best regards,
Alexey Pasumansky,
Agisoft LLC

felipe

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Using file XML Batch in script Python
« Reply #2 on: August 09, 2017, 03:59:38 PM »
Alexey,

Thanks for your answer.