Forum

Author Topic: Select all cameras that have masks?  (Read 3869 times)

wyowill

  • Newbie
  • *
  • Posts: 20
    • View Profile
Select all cameras that have masks?
« on: May 07, 2018, 07:05:56 AM »
Is there a tool that would produce a multiselect or list of all cameras within a chunk that have an associated mask?

If not, any hints on how to script (assuming it's possible)?

Cheers,
Will

James

  • Hero Member
  • *****
  • Posts: 771
    • View Profile
Re: Select all cameras that have masks?
« Reply #1 on: May 08, 2018, 04:51:35 PM »
Don't know if this little script helps, but it will give you a custom menu command which will select all images that have an associated mask.

From there you could use the inbuilt commands to filter by selected images or move those images to a new group/chunk.

Code: [Select]
import PhotoScan

def selectMasked():

app = PhotoScan.app
chunk = app.document.chunk

for cam in chunk.cameras:
cam.selected = cam.mask is not None


PhotoScan.app.addMenuItem("Custom Functions/Select Masked Images", selectMasked)