{"id":621,"date":"2021-02-19T15:52:17","date_gmt":"2021-02-19T14:52:17","guid":{"rendered":"https:\/\/sigeo.cerege.fr\/?p=621"},"modified":"2023-09-08T15:44:58","modified_gmt":"2023-09-08T13:44:58","slug":"metashape-script","status":"publish","type":"post","link":"https:\/\/sigeo.cerege.fr\/?p=621","title":{"rendered":"Metashape script"},"content":{"rendered":"\n<p>API Python <a href=\"https:\/\/www.agisoft.com\/pdf\/metashape_python_api_2_0_0.pdf\">https:\/\/www.agisoft.com\/pdf\/metashape_python_api_2_0_0.pdf<\/a><\/p>\n\n\n\n<p>FAQ scripting : <a href=\"https:\/\/agisoft.freshdesk.com\/support\/solutions\/folders\/31000114192\">https:\/\/agisoft.freshdesk.com\/support\/solutions\/folders\/31000114192<\/a><\/p>\n\n\n\n<p>Liste des scripts: <a href=\"https:\/\/github.com\/agisoft-llc\/metashape-scripts\">https:\/\/github.com\/agisoft-llc\/metashape-scripts<\/a><\/p>\n\n\n\n<p>exemple d&#8217;utilisation de la console Python dans Metashape, pour d\u00e9cocher les orientations de cam\u00e9ras :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import Metashape\ndoc=Metashape.app.document\nchunk=doc.chunk\nfor camera in chunk.cameras:\n   camera.reference.rotation_enabled=0<\/pre>\n\n\n\n<p>image matching and alignment for the active chunk :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nimport Metashape \nchunk=Metashape.app.document.chunk\nfor frame in chunk.frames:\n   frame.matchPhotos(downscale=1)\n   chunk.alignCameras()<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;utilisation de la console Python dans Metashape, pour d\u00e9cocher les orientations de cam\u00e9ras : 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 :<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1],"tags":[],"class_list":["post-621","post","type-post","status-publish","format-standard","hentry","category-photoscan","category-sigeo"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts\/621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=621"}],"version-history":[{"count":7,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts\/621\/revisions"}],"predecessor-version":[{"id":801,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=\/wp\/v2\/posts\/621\/revisions\/801"}],"wp:attachment":[{"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sigeo.cerege.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}