Forum

Author Topic: Export Dense Clouds by Label  (Read 1373 times)

Jernej

  • Newbie
  • *
  • Posts: 22
    • View Profile
Export Dense Clouds by Label
« on: February 24, 2021, 01:56:40 PM »
Hello

I would like to export only specific / selected dense clouds from a chunk with multiple dense clouds.
It seems that chunk.exportPoints() doesn't allow for specific dense clouds to be exported or am I missing something?

Thank you for your help.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14890
    • View Profile
Re: Export Dense Clouds by Label
« Reply #1 on: February 26, 2021, 11:10:00 AM »
Hello Jernej,

You can loop through all the dense clouds in the active chunk and export them:

Code: [Select]
chunk = Metashape.app.document.chunk
for cloud in chunk.dense_clouds:
    chunk.exportPoints(path = "point_cloud_" + cloud.key + ".las", source_data = Metashape.DenseCloudData)
Best regards,
Alexey Pasumansky,
Agisoft LLC