global | nuke: fixing input kwargs

This commit is contained in:
Jakub Jezek 2022-12-29 14:59:37 +01:00
parent 855bf4d6c6
commit 3b68eb0076
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
3 changed files with 13 additions and 13 deletions

View file

@ -97,9 +97,8 @@ class NukeRenderLocal(publish.ExtractorColormanaged):
# inject colorspace data
self.set_representation_colorspace(
repre,
config_data,
file_rules
repre, instance.context,
config_data, file_rules
)
instance.data["representations"].append(repre)

View file

@ -321,10 +321,8 @@ class ExtractorColormanaged(Extractor):
return config_data, file_rules
def set_representation_colorspace(
self, representation,
project_settings,
config_data,
file_rules
self, representation, context,
config_data, file_rules
):
if not config_data:
@ -332,15 +330,19 @@ class ExtractorColormanaged(Extractor):
self.log.warning("No colorspace management was defined")
return
self.log.info("Config path is : `{}`".format(
self.log.info("Config data is : `{}`".format(
config_data))
# check extension
ext = representation["ext"]
# check extension
self.log.debug("__ ext: `{}`".format(ext))
if ext.lower() not in self.allowed_ext:
return
project_name = context.data["projectName"]
host_name = context.data["hostName"]
project_settings = context.data["project_settings"]
# get one filename
filename = representation["files"]
if isinstance(filename, list):
@ -351,7 +353,7 @@ class ExtractorColormanaged(Extractor):
# get matching colorspace from rules
colorspace = get_imagio_colorspace_from_filepath(
filename,
filename, host_name, project_name,
config_data=config_data,
file_rules=file_rules,
project_settings=project_settings

View file

@ -44,7 +44,6 @@ class ExtractColorspaceData(publish.ExtractorColormanaged):
continue
self.set_representation_colorspace(
representation,
config_data,
file_rules
representation, context,
config_data, file_rules
)