From f267476d33dc7aef32f1e39cf3063e017d227bf6 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 24 Apr 2020 19:23:45 +0200 Subject: [PATCH] input resolution is not taken from instance data but from input source --- pype/plugins/global/publish/extract_review.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pype/plugins/global/publish/extract_review.py b/pype/plugins/global/publish/extract_review.py index deb4eb9ab6..32c8a10039 100644 --- a/pype/plugins/global/publish/extract_review.py +++ b/pype/plugins/global/publish/extract_review.py @@ -591,17 +591,12 @@ class ExtractReview(pyblish.api.InstancePlugin): # Get instance data pixel_aspect = temp_data["pixel_aspect"] - input_width = temp_data["resolution_width"] - input_height = temp_data["resolution_height"] - # If instance miss resolution settings. - if input_width is None or input_height is None: - # QUESTION Shall we skip instance data and use these values - # by default? - # Use input resolution - input_data = self.ffprobe_streams(temp_data["full_input_path"]) - input_width = input_data["width"] - input_height = input_data["height"] + # NOTE Skipped using instance's resolution + full_input_path_single_file = temp_data["full_input_path_single_file"] + input_data = self.ffprobe_streams(full_input_path_single_file) + input_width = input_data["width"] + input_height = input_data["height"] self.log.debug("pixel_aspect: `{}`".format(pixel_aspect)) self.log.debug("input_width: `{}`".format(input_width))