mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merged in hotfix/standalone_p_review_length (pull request #333)
Hotfix/standalone p review length
This commit is contained in:
commit
fd8ddf31ac
1 changed files with 12 additions and 4 deletions
|
|
@ -122,9 +122,15 @@ class ExtractReviewSP(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 = (
|
||||
|
|
@ -164,7 +170,9 @@ class ExtractReviewSP(pyblish.api.InstancePlugin):
|
|||
"ext": ext,
|
||||
"files": repr_file,
|
||||
"tags": new_tags,
|
||||
"outputName": name
|
||||
"outputName": name,
|
||||
"startFrameReview": 1,
|
||||
"endFrameReview": video_len
|
||||
})
|
||||
if repre_new.get("preview"):
|
||||
repre_new.pop("preview")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue