mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
OP-4643 - add custom_tags
This commit is contained in:
parent
ec299f0d3c
commit
2bc8377dbc
1 changed files with 6 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ class ExtractColorTranscode(publish.Extractor):
|
|||
target_colorspace = profile["output_colorspace"]
|
||||
if not target_colorspace:
|
||||
raise RuntimeError("Target colorspace must be set")
|
||||
custom_tags = profile["custom_tags"]
|
||||
|
||||
repres = instance.data.get("representations") or []
|
||||
for idx, repre in enumerate(repres):
|
||||
|
|
@ -109,6 +110,11 @@ class ExtractColorTranscode(publish.Extractor):
|
|||
self.log
|
||||
)
|
||||
|
||||
if custom_tags:
|
||||
if not repre.get("custom_tags"):
|
||||
repre["custom_tags"] = []
|
||||
repre["custom_tags"].extend(custom_tags)
|
||||
|
||||
def repre_is_valid(self, repre):
|
||||
"""Validation if representation should be processed.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue