From 9e69f4f52bc17ff0c3042767ddc6a21defad4965 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 16 Oct 2019 11:30:33 +0200 Subject: [PATCH] added ability to specify profiles to be processed if necessary --- pype/plugins/global/publish/extract_review.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pype/plugins/global/publish/extract_review.py b/pype/plugins/global/publish/extract_review.py index 1fdf6af811..49e71e535b 100644 --- a/pype/plugins/global/publish/extract_review.py +++ b/pype/plugins/global/publish/extract_review.py @@ -37,6 +37,9 @@ class ExtractReview(pyblish.api.InstancePlugin): # get representation and loop them representations = instance.data["representations"] + # get specific profile if was defined + specific_profiles = instance.data.get("repreProfiles") + # filter out mov and img sequences representations_new = representations[:] for repre in representations: @@ -52,6 +55,10 @@ class ExtractReview(pyblish.api.InstancePlugin): for name, profile in output_profiles.items(): self.log.debug("Profile name: {}".format(name)) + # filter profiles if were set specific profiles + if specific_profile and name not in specific_profiles: + continue + ext = profile.get("ext", None) if not ext: ext = "mov"