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

Refactor colorspace handling in CollectColorspace plugin #6033

Merged
merged 9 commits into from Dec 19, 2023

Conversation

jakubjezek001
Copy link
Member

@jakubjezek001 jakubjezek001 commented Dec 8, 2023

Changelog Description

Traypublisher is now capable set available colorspaces or roles to publishing images sequence or video. This is fix of new implementation where we allowed to use roles in the enumerator selector.

Additional info

  • Refactored the code to use more descriptive variable names
  • Added a helper method _colorspace_name_by_type to retrieve the colorspace name based on its type
  • Updated logging statements for better clarity and readability

Fix validation error in ValidateColorspace plugin

  • Added a check to ensure that the OCIO config contains at least one colorspace
  • If no colorspaces are found, an error is raised with appropriate messages and descriptions
  • Updated logging statement to include a pretty-printed representation of the config's colorspaces

Testing notes:

  1. Open Traypublisher at project where colormanagement is activated to ACES

  2. Create product plate or render and drop any sequence or video to appropriate fields.

  3. On right set any from the options > try roles or colrospace
    image

  4. hit Validate and all should go trough as expected.

- Refactored the code to use more descriptive variable names
- Added a helper method `_colorspace_name_by_type` to retrieve the colorspace name based on its type
- Updated logging statements for better clarity and readability

Fix validation error in ValidateColorspace plugin

- Added a check to ensure that the OCIO config contains at least one colorspace
- If no colorspaces are found, an error is raised with appropriate messages and descriptions
- Updated logging statement to include a pretty-printed representation of the config's colorspaces
@ynbot ynbot added type: bug Something isn't working host: TrayPublisher size/XS Denotes a PR changes 0-99 lines, ignoring general files labels Dec 8, 2023
@jakubjezek001 jakubjezek001 assigned 64qam and unassigned LiborBatek Dec 19, 2023
@jakubjezek001 jakubjezek001 merged commit 0c28abc into develop Dec 19, 2023
1 check was pending
@ynbot ynbot added this to the next-patch milestone Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
host: TrayPublisher size/XS Denotes a PR changes 0-99 lines, ignoring general files target: AYON target: OpenPype type: bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

6 participants