I am working on a plug-in that needs to remove certain cameras that I determine by proximity and orientation won't contribute much to computing a Dense Cloud per chunk. (I am able to use the API to deactivate my candidate cameras, but in another pass, I want to actually remove those cameras to make the result small enough to be savable. (when I use more than 75 chunks and each chunk has 2-3K cameras, it won't save).
I'm trying to be very careful that I'm not actually trying to remove a "COPY" of a camera from the camera list (cause I understand why that wouldn't work).
I absolutely can remove a camera using the GUI and it goes away.
But via the console window, I find that even this basic command which is not using a "copy" won't actually delete the camera (the first camera in this case).
PhotoScan.app.document.chunk.cameras.remove(PhotoScan.app.document.chunk.cameras[0])
(It doesn't fail, the return status is "" or "none")
Surely I'm doing something wrong, but I can't figure out why.
-Jay-