Forum

Author Topic: loadReference gives no error but doesn't load the file  (Read 3544 times)

SherryYu

  • Newbie
  • *
  • Posts: 1
    • View Profile
loadReference gives no error but doesn't load the file
« on: September 27, 2017, 07:02:24 PM »
Hi,

I'm trying to load a .csv file that contains camera positions using Agisoft version 1.3.4.

Here is my code

doc = PhotoScan.app.document
doc.open("project.psz")
doc.chunk.loadReference(referencepath)
doc.save()


My project already has the photos imported into chunk, and when I manually add the .csv file using Reference pane's "Import" it works. However if I run the script nothing happens. I'm sure the .csv file path is right btw.

Can anyone help making this work? Thanks in advance! 


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15366
    • View Profile
Re: loadReference gives no error but doesn't load the file
« Reply #1 on: September 27, 2017, 10:23:21 PM »
Hello SherryYu,

I would rather suggest to use absolute path to the project. Also for the loadReference() function it's recommended to use the format argument.
Best regards,
Alexey Pasumansky,
Agisoft LLC