Skip to content

ociocheck to check OpenColorIO library version first #2303

@meimchu

Description

@meimchu

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions