From 88ddbf91c5525cd97f96d52286d4f6e7d7e9d455 Mon Sep 17 00:00:00 2001 From: karimmozlia Date: Mon, 1 Nov 2021 12:22:18 +0200 Subject: [PATCH 1/3] fix type --- .../defaults/project_settings/standalonepublisher.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openpype/settings/defaults/project_settings/standalonepublisher.json b/openpype/settings/defaults/project_settings/standalonepublisher.json index 50c1e34366c..6858c4f34dd 100644 --- a/openpype/settings/defaults/project_settings/standalonepublisher.json +++ b/openpype/settings/defaults/project_settings/standalonepublisher.json @@ -173,9 +173,9 @@ "workfile_families": [], "texture_families": [], "color_space": [ - "linsRGB", - "raw", - "acesg" + "sRGB", + "Raw", + "ACEScg" ], "input_naming_patterns": { "workfile": [ From dbb451e85015cda13f005960f0785d4e9bee4e2b Mon Sep 17 00:00:00 2001 From: karimmozlia Date: Wed, 17 Nov 2021 13:24:54 +0200 Subject: [PATCH 2/3] color_space raw to Raw --- openpype/hosts/maya/plugins/publish/collect_look.py | 2 +- openpype/hosts/maya/plugins/publish/extract_look.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openpype/hosts/maya/plugins/publish/collect_look.py b/openpype/hosts/maya/plugins/publish/collect_look.py index 9c047b252fd..20a9d4ca122 100644 --- a/openpype/hosts/maya/plugins/publish/collect_look.py +++ b/openpype/hosts/maya/plugins/publish/collect_look.py @@ -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 # pattern in it, to generate some logging information about this # difference diff --git a/openpype/hosts/maya/plugins/publish/extract_look.py b/openpype/hosts/maya/plugins/publish/extract_look.py index e0b85907e9f..b3a057b23f9 100644 --- a/openpype/hosts/maya/plugins/publish/extract_look.py +++ b/openpype/hosts/maya/plugins/publish/extract_look.py @@ -335,7 +335,7 @@ def process_resources(self, instance, staging_dir): files_metadata[filepath]["color_space"] = "raw" if do_maketx: - color_space = "raw" + color_space = "Raw" source, mode, texture_hash = self._process_texture( filepath, @@ -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": # 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"] From 084d0d3a9c328da0ded310ad5dbe7ce5f7f8053d Mon Sep 17 00:00:00 2001 From: karimmozlia Date: Wed, 17 Nov 2021 13:31:21 +0200 Subject: [PATCH 3/3] color_space raw to Raw --- openpype/hosts/maya/plugins/publish/extract_look.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openpype/hosts/maya/plugins/publish/extract_look.py b/openpype/hosts/maya/plugins/publish/extract_look.py index b3a057b23f9..2407617b6f6 100644 --- a/openpype/hosts/maya/plugins/publish/extract_look.py +++ b/openpype/hosts/maya/plugins/publish/extract_look.py @@ -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, @@ -385,7 +385,7 @@ def process_resources(self, instance, staging_dir): # node doesn't have color space attribute 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" # Remap file node filename to destination