From ccc1ff3099171a877091e0cad95444c89fe193bc Mon Sep 17 00:00:00 2001 From: karimmozlia Date: Fri, 22 Oct 2021 18:01:55 +0200 Subject: [PATCH] un check color managment when no path --- openpype/hosts/maya/api/lib.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openpype/hosts/maya/api/lib.py b/openpype/hosts/maya/api/lib.py index 140ebc7f26..fbc2fee75c 100644 --- a/openpype/hosts/maya/api/lib.py +++ b/openpype/hosts/maya/api/lib.py @@ -1886,6 +1886,7 @@ def set_context_settings(): # Set frame range. avalon.maya.interactive.reset_frame_range() + # Set colorspace set_colorspace() @@ -2781,6 +2782,10 @@ def set_colorspace(): log.debug("maya '{}' changed to: {}".format( "configFilePath", resolved_path)) root_dict.pop("configFilePath") + else : + cmds.colorManagementPrefs(e=True, cmConfigFileEnabled=False) + cmds.colorManagementPrefs(e=True, configFilePath= "" ) + # third define rendering space and view transform