fix AiImage colorspace and UDIMs errored out while extracting the look

This commit is contained in:
Kayla Man 2022-08-08 22:15:50 +08:00
parent 1a7164fa90
commit 38c35a87de

View file

@ -429,14 +429,7 @@ class ExtractLook(openpype.api.Extractor):
# node doesn't have color space attribute
color_space = "Raw"
else:
try:
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 its attribute is raw.
if cmds.getAttr(color_space_attr) == "Raw":
color_space = "Raw"
color_space = "Raw"
# Remap file node filename to destination
remap[color_space_attr] = color_space
attr = resource["attribute"]