feat(global): adding celaction detect for preview tags and families

This commit is contained in:
Jakub Jezek 2020-06-04 18:11:43 +01:00
parent 1213357d29
commit 082b7cf5c5
2 changed files with 8 additions and 2 deletions

View file

@ -610,8 +610,8 @@ class ExtractReview(pyblish.api.InstancePlugin):
# NOTE Skipped using instance's resolution
full_input_path_single_file = temp_data["full_input_path_single_file"]
input_data = pype.lib.ffprobe_streams(full_input_path_single_file)[0]
input_width = input_data["width"]
input_height = input_data["height"]
input_width = int(input_data["width"])
input_height = int(input_data["height"])
self.log.debug("pixel_aspect: `{}`".format(pixel_aspect))
self.log.debug("input_width: `{}`".format(input_width))
@ -631,6 +631,9 @@ class ExtractReview(pyblish.api.InstancePlugin):
output_width = input_width
output_height = input_height
output_width = int(output_width)
output_height = int(output_height)
self.log.debug(
"Output resolution is {}x{}".format(output_width, output_height)
)

View file

@ -490,6 +490,9 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
if bake_render_path:
preview = False
if "celaction" in self.hosts:
preview = True
staging = os.path.dirname(list(collection)[0])
success, rootless_staging_dir = (
self.anatomy.find_root_template_from_path(staging)