Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Refactor colorspace handling in CollectColorspace plugin#6033

Merged
jakubjezek001 merged 9 commits intodevelopfrom
bugfix/traypublisher-explicit-colorspace
Dec 19, 2023
Merged

Refactor colorspace handling in CollectColorspace plugin#6033
jakubjezek001 merged 9 commits intodevelopfrom
bugfix/traypublisher-explicit-colorspace

Conversation

@jakubjezek001
Copy link
Copy Markdown
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
@ynbot ynbot added this to the next-patch milestone Dec 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

6 participants