def execute(self, context):
        """Export selected cameras and points as :code:`VisualSfM` file."""
        assert len(self.files) == 1
        ofp = 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

        VisualSfMFileHandler.write_visualsfm_file(
            ofp, cameras, points, op=self
        )

        return {"FINISHED"}
Export selected cameras and points as :code:`VisualSfM` file.
photogrammetry_importer/operators/visualsfm_export_op.py