mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
feat(global): hook the conditions to preset tags
after all that is what they are for ;)
This commit is contained in:
parent
350dbda38c
commit
7f171bd11d
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue