diff --git a/client/ayon_core/plugins/publish/integrate.py b/client/ayon_core/plugins/publish/integrate.py index a71a69b86c3..b3362fc5102 100644 --- a/client/ayon_core/plugins/publish/integrate.py +++ b/client/ayon_core/plugins/publish/integrate.py @@ -623,7 +623,13 @@ def prepare_representation( # add template data for colorspaceData if repre.get("colorspaceData"): - colorspace = repre["colorspaceData"]["colorspace"] + colorspace = repre["colorspaceData"].get("colorspace") + display = repre["colorspaceData"].get("display") + view = repre["colorspaceData"].get("view") + if not colorspace and (display and view): + colorspace = f"{display}_{view}" + elif not colorspace and not display and view: + colorspace = view # replace spaces with underscores # pipeline.colorspace.parse_colorspace_from_filepath # is checking it with underscores too