Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adsk contrib - Add method to check inactive color space and an extra getRoleColorSpace method #1792

Conversation

cedrik-fuoco-adsk
Copy link
Contributor

This PR adds the following two methods:
isInactiveColorSpace - which tells the user if the specified color space is inactive or not.
getRoleColorSpace - which tells the user the color space associated with the specified role name.

Implements basic unit tests for those two methods.

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Added the python bindings equivalents.
Tweak C++ unit tests and added python unit tests.

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Moving the new unit tests
Adding extra tests for un-tested methods

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
@@ -312,6 +312,16 @@ OCIO_ADD_TEST(Config, roles)

OCIO_CHECK_EQUAL(std::string(config->getRoleName(-4)), "");
OCIO_CHECK_EQUAL(std::string(config->getRoleColorSpace(-4)), "");

// Test existing roles in cg-config-v1.0.0_aces-v1.3_ocio-v2.1.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor] Remove the mention to cg config?

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
@doug-walker doug-walker merged commit 219ac86 into AcademySoftwareFoundation:main May 4, 2023
@doug-walker doug-walker deleted the adsk_contrib/add-method-to-check-inactive-colorspace branch May 4, 2023 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants