def poll(cls, context):
        """Return the availability status of the operator."""
        cam = get_selected_camera()
        return cam is not None
Return the availability status of the operator.
photogrammetry_importer/panels/view_synthesis_operators.py