mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
todos for parseColorSpaceFromString
This commit is contained in:
parent
edc260073b
commit
97477d2049
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue