1
General / undo lock transformation on LIDAR
« Last post by gheflorian on Today at 08:24:46 AM »Hi there! Is there a way to undo the point clouds if I did unlock transformation, georef using GCP and then lock and save the project?
doc = Metashape.Document()
chunk = doc.addChunk()
folders = glob.glob("stash_bs/*/rgb/")
folder = folders[0]
photo_files = [os.path.join(folder, f) for f in os.listdir(folder)
if f.lower().endswith(('.jpg', '.jpeg', '.png', '.tif', '.cr2', '.dng', '.tiff'))]
groups = [len(folders) for _ in photo_files]
per_folder_files = {}
for folder in folders:
per_folder_files[folder] = sorted(glob.glob(f"{folder}/*{os.path.splitext(photo_files[0])[1]}"))
all_photo_files = []
for i in range(len(per_folder_files[folder])):
for folder in folders:
all_photo_files.append(per_folder_files[folder][i])
chunk.addPhotos(all_photo_files, groups, layout=Metashape.ImageLayout.MultiframeLayout, strip_extensions=False)