I brought this up as a question recently in ASWF OpenColorIO's slack channel. If I were to use ociocheck built from an earlier version of OCIO (v2.2 for example) and try to load in a OCIO config file built with a later version of OCIO (v2.4 for example), the operation will stop immediately with a generic message ERROR: Error could not read.... I thought it would be nice to have a more deterministic error message by checking for ocio_profile_version: value first. This is especially so when the various DCCs can have different OCIO versions loaded. This would be just a nice little quality of life improvement for debugging.
ociocheck already prints out OpenColorIO Library Version: at the beginning so my plan is to just expand on that by checking it against ocio_profile_version prior to OCIO::CreateFromFile().
I brought this up as a question recently in ASWF OpenColorIO's slack channel. If I were to use
ociocheckbuilt from an earlier version of OCIO (v2.2 for example) and try to load in a OCIO config file built with a later version of OCIO (v2.4 for example), the operation will stop immediately with a generic messageERROR: Error could not read.... I thought it would be nice to have a more deterministic error message by checking forocio_profile_version:value first. This is especially so when the various DCCs can have different OCIO versions loaded. This would be just a nice little quality of life improvement for debugging.ociocheckalready prints outOpenColorIO Library Version:at the beginning so my plan is to just expand on that by checking it againstocio_profile_versionprior toOCIO::CreateFromFile().