mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
global | nuke: fixing input kwargs
This commit is contained in:
parent
855bf4d6c6
commit
3b68eb0076
3 changed files with 13 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@ class ExtractColorspaceData(publish.ExtractorColormanaged):
|
|||
continue
|
||||
|
||||
self.set_representation_colorspace(
|
||||
representation,
|
||||
config_data,
|
||||
file_rules
|
||||
representation, context,
|
||||
config_data, file_rules
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue