Hello,
I have a question along the same lines. I have a user that wants to be able to not only remove selected cameras from a chunk, but also delete the physical jpg/image file from the system as well. I am scripting this with the API but have run into an interesting issue. The problem is that when the script is run not all of the selected cameras are removed from the active chunk.
Code:
if cameraCount > 0:
for camera in chunk.cameras:
if camera.selected:
print(camera.label)
chunk.cameras.remove(camera)
This is simple code. If I rerun the script multiple times I am able to remove all the selected cameras, but I don't want the users to have to rerun multiple times. I am running Photoscan Professional 0.9.1 build 1714 64 bit.
Thanks!
Josh