Forum

Author Topic: Updating image paths.  (Read 3747 times)

s093294

  • Newbie
  • *
  • Posts: 23
    • View Profile
Updating image paths.
« on: October 20, 2014, 01:44:56 AM »
I have a project file where the images have been moved to new paths and i was hoping I could fix it with python but

Traceback (most recent call last):
  File "<console>", line 1, in <module>
AttributeError: attribute 'path' of 'PhotoScan.Camera' objects is not writable

when trying to set

chunk.cameras[1].path = 'newpath'

Is something like that possible or what is the best way to fix. I could write out the list of image paths and then copy all images into the expected position before opening photoscan.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Updating image paths.
« Reply #1 on: October 20, 2014, 06:29:25 AM »
Hello s093294,

In version 1.1 you should use chunk.cameras[0].photo.path = newpath, while in version 1.0 - chunk.cameras[0].frames[0].path = newpath.
Best regards,
Alexey Pasumansky,
Agisoft LLC