Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2195 from pypeclub/bugfix/OP-1924-texture-colorsp…
Browse files Browse the repository at this point in the history
…ace-modes-in-looks
  • Loading branch information
mkolar authored Nov 18, 2021
2 parents 348fe98 + 084d0d3 commit 5ee90d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion openpype/hosts/maya/plugins/publish/collect_look.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def collect_resource(self, node):
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
Expand Down
12 changes: 6 additions & 6 deletions openpype/hosts/maya/plugins/publish/extract_look.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,10 @@ def process_resources(self, instance, staging_dir):
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,
Expand Down Expand Up @@ -383,11 +383,11 @@ def process_resources(self, instance, staging_dir):
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"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@
"workfile_families": [],
"texture_families": [],
"color_space": [
"linsRGB",
"raw",
"acesg"
"sRGB",
"Raw",
"ACEScg"
],
"input_naming_patterns": {
"workfile": [
Expand Down

0 comments on commit 5ee90d9

Please sign in to comment.