Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: William Ringle on October 23, 2015, 02:29:52 PM

Title: identifying non-aligned photos
Post by: William Ringle on October 23, 2015, 02:29:52 PM
I am new to Python scripting. What is the property that identifies a photo/camera as unaligned (N/A)? I searched the documentation but couldn't find it. I would like to run a script to list all photos/cameras that are not aligned.
Title: Re: identifying non-aligned photos
Post by: James on October 23, 2015, 02:49:31 PM
this might help

http://www.agisoft.com/forum/index.php?topic=3942.0 (http://www.agisoft.com/forum/index.php?topic=3942.0)

for camera in doc.chunk.cameras:
    if not camera.transform:
Title: Re: identifying non-aligned photos
Post by: William Ringle on October 23, 2015, 03:07:49 PM
Thank you James, worked perfectly.