flame: single file in representation if mov or thumb

This commit is contained in:
Jakub Jezek 2022-03-14 11:45:29 +01:00
parent 9052adfbd3
commit a6fb84f3e1
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -217,7 +217,11 @@ class ExtractSubsetResources(openpype.api.Extractor):
# add files to represetation but add
# imagesequence as list
if (
"movie_file" in preset_path
# first check if path in files is not mov extension
next([
f for f in files if ".mov" in os.path.splitext(f)[-1]
], None)
# then try if thumbnail is not in unique name
or unique_name == "thumbnail"
):
representation_data["files"] = files.pop()