Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: felipe on August 08, 2017, 10:52:53 PM

Title: Using file XML Batch in script Python
Post by: felipe 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!
Title: Re: Using file XML Batch in script Python
Post by: Alexey Pasumansky 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.
Title: Re: Using file XML Batch in script Python
Post by: felipe on August 09, 2017, 03:59:38 PM
Alexey,

Thanks for your answer.