Forum

Author Topic: Laser Scanner Camera Locations Export  (Read 9465 times)

LRP

  • Newbie
  • *
  • Posts: 29
    • View Profile
Laser Scanner Camera Locations Export
« on: May 27, 2025, 04:19:09 PM »
I can export laser scan cameras if I select Metashape XML format, however when I try to export in OPK format, Metashape says there are no aligned cameras. Should it not be able to export the laser scanner cube map cameras in this format?

vineg

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: Laser Scanner Camera Locations Export
« Reply #1 on: May 30, 2025, 05:52:44 PM »
Hi!

You can export all cameras including embedded ones in OPK format using following code in built in Python console:

Code: [Select]
path = Metashape.app.getSaveFileName()
camera_keys = list(map(lambda cam: cam.key, Metashape.app.document.chunk.cameras))
Metashape.app.document.chunk.exportCameras(path, Metashape.CamerasFormatOPK, cameras=camera_keys)

Regards, Egor