From 7f171bd11d16a806987f2a355808f2d1a59aa3c2 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Fri, 6 Dec 2019 14:49:45 +0100 Subject: [PATCH] feat(global): hook the conditions to preset tags after all that is what they are for ;) --- pype/plugins/global/publish/extract_review.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pype/plugins/global/publish/extract_review.py b/pype/plugins/global/publish/extract_review.py index 418ac39186..a002e1140d 100644 --- a/pype/plugins/global/publish/extract_review.py +++ b/pype/plugins/global/publish/extract_review.py @@ -165,7 +165,7 @@ class ExtractReview(pyblish.api.InstancePlugin): # scaling none square pixels and 1920 width # scale=320:-2 # to auto count height with output to be multiple of 2 - if profile.get('reformat', False): + if "reformat" in tags: pixel_aspect = instance.data["pixelAspect"] scaling_arg = "scale=1920:'ceil((1920/{})/2)*2':flags=lanczos,setsar=1".format( pixel_aspect) @@ -176,7 +176,7 @@ class ExtractReview(pyblish.api.InstancePlugin): # baking lut file application lut_path = instance.data.get("lutPath") - if lut_path: + if lut_path and ("bake-lut" in tags): # removing Gama info as it is all baked in lut gamma = next((g for g in input_args if "-gamma" in g), None)