fix the bug of failing to extract the look with the UDIMs format in AiImage

This commit is contained in:
Kayla Man 2022-08-08 20:10:04 +08:00
parent ed13f96a12
commit 13bc6cab8e

View file

@ -430,11 +430,11 @@ class ExtractLook(openpype.api.Extractor):
color_space = "Raw"
else:
try:
if files_metadata[source]["color_space"] == "Raw":
if files_metadata[source]["color_space"] == "Raw":
# set color space to raw if we linearized it
color_space = "Raw"
except KeyError:
#set color space to Raw if the attribute of the color space is raw.
# set color space to Raw if the attribute of the color space is raw.
if cmds.getAttr(color_space_attr) == "Raw":
color_space = "Raw"
# Remap file node filename to destination