1
Python and Java API / Re: Deleting empty camera groups
« on: June 21, 2022, 02:55:29 PM »
Hello Alexey,
Thank you for your help, this method works perfectly.
I would like to put a corrected version where I replaced the list a by empty, otherwise it does not work
--
Michel
Thank you for your help, this method works perfectly.
I would like to put a corrected version where I replaced the list a by empty, otherwise it does not work
Code: [Select]
chunk = Metashape.app.document.chunk
empty = list(chunk.camera_groups)
for camera in chunk.cameras:
if camera.group in empty:
empty.remove(camera.group)
chunk.remove(empty)
--
Michel