mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
frames length is based on type of input files
This commit is contained in:
parent
6fcc28abc4
commit
ebb903b3a5
1 changed files with 9 additions and 3 deletions
|
|
@ -122,9 +122,15 @@ class ExtractReviewSaP(pyblish.api.InstancePlugin):
|
|||
output_args = []
|
||||
# preset's output data
|
||||
output_args.extend(profile.get("output", []))
|
||||
|
||||
# set length of video by len of inserted files
|
||||
output_args.append("-frames {}".format(len(repre["files"])))
|
||||
|
||||
if isinstance(repre["files"], list):
|
||||
# set length of video by len of inserted files
|
||||
video_len = len(repre["files"])
|
||||
else:
|
||||
video_len = repre["frameEnd"] - repre["frameStart"] + 1
|
||||
output_args.append(
|
||||
"-frames {}".format(video_len)
|
||||
)
|
||||
|
||||
# letter_box
|
||||
lb_string = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue