mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
removing obsolete code in nuke host
since we are using OCIO env var there is no need to set this per attribute
This commit is contained in:
parent
5a39139aaa
commit
30d0b35c9a
1 changed files with 1 additions and 20 deletions
|
|
@ -2013,18 +2013,6 @@ class WorkfileSettings(object):
|
|||
'''
|
||||
workfile_settings = imageio_host["workfile"]
|
||||
|
||||
# get config data if imageio is enabled
|
||||
config_data = None
|
||||
if imageio_host.get("enabled"):
|
||||
# switch ocio config to custom config
|
||||
workfile_settings["OCIO_config"] = "custom"
|
||||
workfile_settings["colorManagement"] = "OCIO"
|
||||
|
||||
# get resolved ocio config path
|
||||
config_data = get_imageio_config(
|
||||
legacy_io.active_project(), "nuke"
|
||||
)
|
||||
|
||||
# first set OCIO
|
||||
if self._root_node["colorManagement"].value() \
|
||||
not in str(workfile_settings["colorManagement"]):
|
||||
|
|
@ -2034,6 +2022,7 @@ class WorkfileSettings(object):
|
|||
# we dont need the key anymore
|
||||
workfile_settings.pop("colorManagement")
|
||||
|
||||
|
||||
# second set ocio version
|
||||
if self._root_node["OCIO_config"].value() \
|
||||
not in str(workfile_settings["OCIO_config"]):
|
||||
|
|
@ -2043,14 +2032,6 @@ class WorkfileSettings(object):
|
|||
# we dont need the key anymore
|
||||
workfile_settings.pop("OCIO_config")
|
||||
|
||||
# third set ocio custom path
|
||||
if config_data:
|
||||
self._root_node["customOCIOConfigPath"].setValue(
|
||||
str(config_data["path"]).replace("\\", "/")
|
||||
)
|
||||
# backward compatibility, remove in case it exists
|
||||
workfile_settings.pop("customOCIOConfigPath")
|
||||
|
||||
# then set the rest
|
||||
for knob, value in workfile_settings.items():
|
||||
# skip unfilled ocio config path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue