mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Extract source_resolution_* fields on representation
Comes from requirement for sources from freelancers uploaded from TP or WP.
This commit is contained in:
parent
915813815b
commit
698aca8656
1 changed files with 4 additions and 0 deletions
|
|
@ -1598,6 +1598,10 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
"FFprobe couldn't read resolution from input file: \"{}\""
|
||||
).format(full_input_path_single_file))
|
||||
|
||||
# collect source values to be potentially used in burnins later
|
||||
new_repre["source_resolution_width"] = input_width
|
||||
new_repre["source_resolution_height"] = input_height
|
||||
|
||||
# NOTE Setting only one of `width` or `height` is not allowed
|
||||
# - settings value can't have None but has value of 0
|
||||
output_width = output_def["width"] or output_width or None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue