From ebb903b3a566c8a67671d9bdb95773601353351e Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 24 Oct 2019 14:16:52 +0200 Subject: [PATCH 1/2] frames length is based on type of input files --- pype/plugins/global/publish/extract_review_sa.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pype/plugins/global/publish/extract_review_sa.py b/pype/plugins/global/publish/extract_review_sa.py index 541a717964..1379558f47 100644 --- a/pype/plugins/global/publish/extract_review_sa.py +++ b/pype/plugins/global/publish/extract_review_sa.py @@ -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 = ( From 3fea14dc0927cff96b49f26e181301e518d9759b Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 24 Oct 2019 14:17:22 +0200 Subject: [PATCH 2/2] added startFrameReview and endFrameReview keys to repre --- pype/plugins/global/publish/extract_review_sa.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pype/plugins/global/publish/extract_review_sa.py b/pype/plugins/global/publish/extract_review_sa.py index 1379558f47..113369a9b3 100644 --- a/pype/plugins/global/publish/extract_review_sa.py +++ b/pype/plugins/global/publish/extract_review_sa.py @@ -170,7 +170,9 @@ class ExtractReviewSaP(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")