Hi,
I have been using a script that works perfectly for defining shapes and exporting pointclouds through the shape label.
Due to the size of some dense clouds I had to run the 'filter dense cloud' to reduce and stay for a future consultation with the original cloud.
At this moment, I am encountering a certain difficulty.
The script needs to be run for the active dense cloud in each of the chunks, which leads to a manual process of activating the chunk and the cloud.
The projects are composed of multiple situations.
1. A psz file with a single chunk and a single point cloud.
2. A psz file with several chunks and one or more point cloud.
To solve this I noticed that in version 1.4.0 DenseCloud.label was added, so I started to differentiate the point clouds by the respective labels "original" and "reduced1" "reduced2" "reduced'n '" in each chunk.
At the moment of running the code I can't get DenseCloud.label to work, as well as the script to run regardless of the amount of chunks and pointclouds.
I tried to use cloud.key but it didn't work very well, because sometimes more than one type of filtering is done and it loses its order.
label = shape.label
chunk.exportPoints(path + "/" + label + "/PointCloud/" + label + "_MDT.LAZ", source_data=Metashape.DenseCloudData , format=Metashape.PointsFormatLAZ, classes = [ Metashape.PointClass.Ground] )
best regards,