From 91b99cafd42b69a00dc714f1a71089de60467771 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Mon, 6 Mar 2023 15:48:43 +0100 Subject: [PATCH] Correctly set the UDIM token using capitals + cleanup comment --- openpype/hosts/maya/plugins/load/load_image.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/openpype/hosts/maya/plugins/load/load_image.py b/openpype/hosts/maya/plugins/load/load_image.py index e975fb8b61..3cf2394525 100644 --- a/openpype/hosts/maya/plugins/load/load_image.py +++ b/openpype/hosts/maya/plugins/load/load_image.py @@ -306,13 +306,12 @@ class FileNodeLoader(load.LoaderPlugin): # our formatting, so that wouldn't be padded as 0 return "___{}___".format(key) - # We want to format UDIM and Frame numbers with the specific tokens - # so we in-place change the representation context so it's formatted - # with the tokens as we'd want them. So we explicitly change those - # tokens around with what we'd need. + # We format UDIM and Frame numbers with their specific tokens. To do so + # we in-place change the representation context data to format the path + # with our own data tokens = { "frame": "", - "udim": "" + "udim": "" } has_tokens = False repre_context = representation["context"]