mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Global: adding colorspace context collector
This commit is contained in:
parent
2239842eb7
commit
0c19c0edb6
1 changed files with 21 additions and 0 deletions
21
openpype/plugins/publish/collect_colorspace_settings.py
Normal file
21
openpype/plugins/publish/collect_colorspace_settings.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
from pyblish import api
|
||||
from openpype.pipeline import (
|
||||
get_imageio_config,
|
||||
get_imageio_file_rules
|
||||
)
|
||||
|
||||
|
||||
class CollectColorspaceSettings(api.ContextPlugin):
|
||||
"""Collect Colorspace Settings and store in the context."""
|
||||
|
||||
order = api.CollectorOrder
|
||||
label = "Collect Colorspace Settings"
|
||||
|
||||
def process(self, context):
|
||||
project_name = context.data["projectName"]
|
||||
host = context.data["hostName"]
|
||||
|
||||
context.data["colorspace_config_path"] = get_imageio_config(
|
||||
project_name, host)
|
||||
context.data["colorspace_file_rules"] = get_imageio_file_rules(
|
||||
project_name, host)
|
||||
Loading…
Add table
Add a link
Reference in a new issue