OCIO: adding exception for nuke, hiero into hook

This commit is contained in:
Jakub Jezek 2023-08-22 17:40:58 +02:00
parent ae53caacc0
commit cd9ec2b73a
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
2 changed files with 4 additions and 0 deletions

View file

@ -45,6 +45,9 @@ class OCIOEnvHook(PreLaunchHook):
if config_data:
ocio_path = config_data["path"]
if self.host_name in ["nuke", "hiero"]:
ocio_path = ocio_path.replace("\\", "/")
self.log.info(
f"Setting OCIO environment to config path: {ocio_path}")

View file

@ -2177,6 +2177,7 @@ Reopening Nuke should synchronize these paths and resolve any discrepancies.
"""
# replace path with env var if possible
ocio_path = self._replace_ocio_path_with_env_var(config_data)
ocio_path = ocio_path.replace("\\", "/")
log.info("Setting OCIO config path to: `{}`".format(
ocio_path))