todos for parseColorSpaceFromString

This commit is contained in:
Jakub Jezek 2023-07-11 16:11:54 +02:00
parent edc260073b
commit 97477d2049
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
2 changed files with 4 additions and 0 deletions

View file

@ -123,6 +123,8 @@ def get_imageio_colorspace_from_filepath(
# from filepath with OCIO v2 way
# QUESTION: should we override file rules from our settings and
# in ocio v2 only focus on file rules set in config file?
# TODO: do the ocio v compatibility check inside of wrapper script
# because of implementation `parseColorSpaceFromString`
if (
compatibility_check_config_version(config_data["path"], major=2)
and not colorspace_name

View file

@ -308,6 +308,8 @@ def _get_colorspace_from_filepath(config_path, filepath):
f"Input path `{config_path}` should be `config.ocio` file")
config = ocio.Config().CreateFromFile(str(config_path))
# TODO: use `parseColorSpaceFromString` instead if ocio v1
colorspace = config.getColorSpaceFromFilepath(str(filepath))
return colorspace