API Python https://www.agisoft.com/pdf/metashape_python_api_2_0_0.pdf
FAQ scripting : https://agisoft.freshdesk.com/support/solutions/folders/31000114192
Liste des scripts: https://github.com/agisoft-llc/metashape-scripts
exemple d’utilisation de la console Python dans Metashape, pour décocher les orientations de caméras :
import Metashape doc=Metashape.app.document chunk=doc.chunk for camera in chunk.cameras: camera.reference.rotation_enabled=0
image matching and alignment for the active chunk :
import Metashape
chunk=Metashape.app.document.chunk
for frame in chunk.frames:
frame.matchPhotos(downscale=1)
chunk.alignCameras()