Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: velutis on April 26, 2017, 02:19:32 PM

Title: 'PhotoScan.Marker.Reference' object attribute 'location' is read-only
Post by: velutis on April 26, 2017, 02:19:32 PM
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 ?