mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
input resolution is not taken from instance data but from input source
This commit is contained in:
parent
c55373238b
commit
f267476d33
1 changed files with 5 additions and 10 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue