From 52b96c5d3c24c2f76190108d9c1a345c2cdd4795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Je=C5=BEek?= Date: Wed, 5 Aug 2026 11:37:57 +0200 Subject: [PATCH] Handle missing colorspace in integration template If 'colorspace' is missing from colorspaceData, fall back to a combination of 'display' and 'view' or just 'view'. --- client/ayon_core/plugins/publish/integrate.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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