def _get_camera_obj_gui_str(camera):
    """Get a string suitable for Blender's GUI describing the camera."""
    # Replace special characters
    # image_fp_clean = image_fp.replace("/", "_").replace("\\", "_").replace(":", "_")
    image_fp_stem = os.path.splitext(camera.get_relative_fp())[0]
    # Blender supports only object names with length 63
    # However, we need also space for additional suffixes
    image_fp_suffix = image_fp_stem[-40:]
    return image_fp_suffix
Get a string suitable for Blender's GUI describing the camera.
photogrammetry_importer/importers/camera_utility.py