Merge pull request #2195 from pypeclub/bugfix/OP-1924-texture-colorspace-modes-in-looks

This commit is contained in:
Milan Kolar 2021-11-18 12:36:35 +01:00 committed by GitHub
commit 5ee90d9288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View file

@ -532,7 +532,7 @@ class CollectLook(pyblish.api.InstancePlugin):
color_space = cmds.getAttr(color_space_attr)
except ValueError:
# node doesn't have colorspace attribute
color_space = "raw"
color_space = "Raw"
# Compare with the computed file path, e.g. the one with the <UDIM>
# pattern in it, to generate some logging information about this
# difference

View file

@ -332,10 +332,10 @@ class ExtractLook(openpype.api.Extractor):
if do_maketx and files_metadata[filepath]["color_space"].lower() == "srgb": # noqa: E501
linearize = True
# set its file node to 'raw' as tx will be linearized
files_metadata[filepath]["color_space"] = "raw"
files_metadata[filepath]["color_space"] = "Raw"
if do_maketx:
color_space = "raw"
# if do_maketx:
# color_space = "Raw"
source, mode, texture_hash = self._process_texture(
filepath,
@ -383,11 +383,11 @@ class ExtractLook(openpype.api.Extractor):
color_space = cmds.getAttr(color_space_attr)
except ValueError:
# node doesn't have color space attribute
color_space = "raw"
color_space = "Raw"
else:
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"
color_space = "Raw"
# Remap file node filename to destination
remap[color_space_attr] = color_space
attr = resource["attribute"]

View file

@ -173,9 +173,9 @@
"workfile_families": [],
"texture_families": [],
"color_space": [
"linsRGB",
"raw",
"acesg"
"sRGB",
"Raw",
"ACEScg"
],
"input_naming_patterns": {
"workfile": [