From d9d1242eafd4160a3e6b63b1c64f3ded9de9e49f Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Wed, 6 Dec 2023 18:32:27 +0800 Subject: [PATCH 1/2] make sure the args mapped to the get_imageio_file_rules_colorspace_from_filepath --- openpype/hosts/maya/plugins/load/load_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpype/hosts/maya/plugins/load/load_image.py b/openpype/hosts/maya/plugins/load/load_image.py index 3b1f5442ce..4a309549ee 100644 --- a/openpype/hosts/maya/plugins/load/load_image.py +++ b/openpype/hosts/maya/plugins/load/load_image.py @@ -286,7 +286,7 @@ class FileNodeLoader(load.LoaderPlugin): path = get_representation_path_from_context(context) colorspace = get_imageio_colorspace_from_filepath( - path=path, + filepath=path, host_name=host_name, project_name=project_name, config_data=config_data, From 719dee21d1e3b62c696ef028cc3b312ef64ad9aa Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Wed, 6 Dec 2023 19:20:35 +0800 Subject: [PATCH 2/2] use get_imageio_file_rules_colorspace_from_filepath instead of deprecated function --- openpype/hosts/maya/plugins/load/load_image.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openpype/hosts/maya/plugins/load/load_image.py b/openpype/hosts/maya/plugins/load/load_image.py index 4a309549ee..27c9ec7118 100644 --- a/openpype/hosts/maya/plugins/load/load_image.py +++ b/openpype/hosts/maya/plugins/load/load_image.py @@ -9,7 +9,7 @@ from openpype.pipeline import ( ) from openpype.pipeline.load.utils import get_representation_path_from_context from openpype.pipeline.colorspace import ( - get_imageio_colorspace_from_filepath, + get_imageio_file_rules_colorspace_from_filepath, get_imageio_config, get_imageio_file_rules ) @@ -285,10 +285,10 @@ class FileNodeLoader(load.LoaderPlugin): ) path = get_representation_path_from_context(context) - colorspace = get_imageio_colorspace_from_filepath( - filepath=path, - host_name=host_name, - project_name=project_name, + colorspace = get_imageio_file_rules_colorspace_from_filepath( + path, + host_name, + project_name, config_data=config_data, file_rules=file_rules, project_settings=project_settings