mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
OP-2448 - added support for single frame playblast review
Before clique.assemble returns empty collections
This commit is contained in:
parent
a6c0063841
commit
bd01ee948c
2 changed files with 6 additions and 4 deletions
|
|
@ -111,7 +111,8 @@ class ExtractPlayblast(openpype.api.Extractor):
|
|||
self.log.debug("playblast path {}".format(path))
|
||||
|
||||
collected_files = os.listdir(stagingdir)
|
||||
collections, remainder = clique.assemble(collected_files)
|
||||
collections, remainder = clique.assemble(collected_files,
|
||||
minimum_items=1)
|
||||
|
||||
self.log.debug("filename {}".format(filename))
|
||||
frame_collection = None
|
||||
|
|
|
|||
|
|
@ -762,8 +762,9 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
"""
|
||||
start_frame = int(start_frame)
|
||||
end_frame = int(end_frame)
|
||||
collections = clique.assemble(files)[0]
|
||||
assert len(collections) == 1, "Multiple collections found."
|
||||
collections = clique.assemble(files, minimum_items=1)[0]
|
||||
msg = "Multiple collections {} found.".format(collections)
|
||||
assert len(collections) == 1, msg
|
||||
col = collections[0]
|
||||
|
||||
# do nothing if no gap is found in input range
|
||||
|
|
@ -845,7 +846,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
|||
dst_staging_dir = new_repre["stagingDir"]
|
||||
|
||||
if temp_data["input_is_sequence"]:
|
||||
collections = clique.assemble(repre["files"])[0]
|
||||
collections = clique.assemble(repre["files"], minimum_items=1)[0]
|
||||
full_input_path = os.path.join(
|
||||
src_staging_dir,
|
||||
collections[0].format("{head}{padding}{tail}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue