From 66bf1065d10241dbbcfd88dc39f731a74acac053 Mon Sep 17 00:00:00 2001 From: Cyprien CAILLOT Date: Wed, 11 Sep 2024 12:05:39 +0200 Subject: [PATCH] Enhancement: Dont perform transcoding if review not specified in tags --- openpype/plugins/publish/extract_color_transcode.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openpype/plugins/publish/extract_color_transcode.py b/openpype/plugins/publish/extract_color_transcode.py index 922df469feb..feed890c968 100644 --- a/openpype/plugins/publish/extract_color_transcode.py +++ b/openpype/plugins/publish/extract_color_transcode.py @@ -85,6 +85,11 @@ def process(self, instance): repres = instance.data["representations"] for idx, repre in enumerate(list(repres)): self.log.debug("repre ({}): `{}`".format(idx + 1, repre["name"])) + + if "review" not in repre.get('tags', []): + self.log.warning("No review in tags. Skipping.") + continue + if not self._repre_is_valid(repre): continue