Forum

Author Topic: 'PhotoScan.Marker.Reference' object attribute 'location' is read-only  (Read 2010 times)

velutis

  • Newbie
  • *
  • Posts: 3
    • View Profile
Hi, im trying to add marker with reference coordinates but i am getting that it is read only|, here is the code:

Code: [Select]
chunk = PhotoScan.app.document.chunk
m = chunk.addMarker()
m.reference.location = PhotoScan.Vector((0,0,0))

AttributeError: 'PhotoScan.Marker.Reference' object attribute 'location' is read-only

what i am doing wrong ?