1
Bug Reports / Re: installation problems on Debian 7.1
« on: September 13, 2016, 12:15:02 PM »
I think that my OS is 64 bit. How is possible to check?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Hello LMG,
I think this should be working as expected:Code: [Select]import PhotoScan
path = PhotoScan.app.getSaveFileName("Please specify export path and filename:")
file = open(path, "wt")
chunk = PhotoScan.app.document.activeChunk
if chunk.transform:
T = chunk.transform
else:
T = PhotoScan.Matrix().diag([1,1,1,1])
print("Script started")
for camera in chunk.cameras:
if camera.transform:
coords = T.mulp(camera.center)
file.write(camera.label + "\t{:.5f}".format(coords[0]) + "\t{:.5f}".format(coords[1]) + "\t{:.5f}".format(coords[2]) + "\n")
file.close()
print("Script finished")