def execute(self, context):
        """Export selected cameras and points as :code:`Colmap` model."""
        assert len(self.files) == 1
        odp = os.path.join(self.directory, self.files[0].name)

        cameras, points = self.get_selected_cameras_and_vertices_of_meshes(odp)
        for cam in cameras:
            assert cam.get_calibration_mat() is not None

        ColmapFileHandler.write_colmap_model(odp, cameras, points, self)

        return {"FINISHED"}
Export selected cameras and points as :code:`Colmap` model.
photogrammetry_importer/operators/colmap_export_op.py