From df0202742a23256fef5fecb2c99a5f5e1881d46f Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Tue, 9 Jul 2024 21:27:56 +0800 Subject: [PATCH] make sure udim is not a list --- client/ayon_core/plugins/publish/integrate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ayon_core/plugins/publish/integrate.py b/client/ayon_core/plugins/publish/integrate.py index 1a4cda4dbb..1bad97bc61 100644 --- a/client/ayon_core/plugins/publish/integrate.py +++ b/client/ayon_core/plugins/publish/integrate.py @@ -765,7 +765,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin): # Manage anatomy template data template_data.pop("frame", None) if is_udim: - template_data["udim"] = repre["udim"][0] + template_data["udim"] = repre["udim"] # Construct destination filepath from template template_filled = path_template_obj.format_strict(template_data) repre_context = template_filled.used_values @@ -792,7 +792,7 @@ class IntegrateAsset(pyblish.api.InstancePlugin): # Explicitly store the full list even though template data might # have a different value because it uses just a single udim tile if repre.get("udim"): - repre_context["udim"] = repre.get("udim") # store list + repre_context["udim"] = repre.get("udim")[0] # store list # Use previous representation's id if there is a name match existing = existing_repres_by_name.get(repre["name"].lower())