Here we will share our custom Metashape python scripts that were requested by IR and developed by the team at Agisoft LLC.
What are Metashape Scripts?
These are a selection of Python scripts written by Agisoft LLC. We have worked closely with Agisoft over the last 7 years getting many features implemented as well as custom scripts developed. Scripts that you might use every day, or maybe once in a week. Tools that will help streamline your workflow. Some are old, some are new but all are relevant.
Make sure to download and paste the scripts to this path on your OS - C:\Users\*your user name*\AppData\Local\Agisoft\Metashape Pro\scripts\
Scripts to Download - Compatibility Metashape Pro 1.5.0
PS150_align_by_good_cameras.py - Alignment tool that calculates an average position of cameras, useful for aligning chunks to a master chunk. Cameras must be named the same across chunks for this to work.
PS150_coordinates_to_bounding_box_rotate.py - You can use the bounding box to set the orientation of the scene.
PS150_copy_bounding box.py - Copies the bounding box position and rotation from current chunk across all chunks.
PS150_crop_mesh_by_region.py - Allowes you to crop geometry by bounding box (Active chunk only)
PS150_enable_all_cameras.py - After using the PS150_align_by_good_cameras.py script, sometimes cameras can be disabled. This will re-enable cameras across the whole workspace.
PS150_filter_point_cloud_by_bounding_box.py - Filters point cloud by bounding box.
PS150_remove_cameras_by_labels.py - Useful to batch remove cameras not required from all chunks in a Workspace. You will be asked to point to a .txt file that lists your camera names (one per each line) in order that you want removed.
PS150_swap_extension.py - You can rename your camera (photo) extension to something else. For example all our products list camera/photo extensions as *.tif, should you wish to use different file format you can change it using this script.
Other related Python scripts can be found here: