diff --git a/pype/plugins/nukestudio/publish/extract_review.py b/pype/plugins/nukestudio/publish/extract_review.py index 0f5d1a4f33..bf7317f010 100644 --- a/pype/plugins/nukestudio/publish/extract_review.py +++ b/pype/plugins/nukestudio/publish/extract_review.py @@ -79,11 +79,13 @@ class ExtractQuicktime(pype.api.Extractor): self.log.debug("Adding representation: {}".format(representation)) # Adding thumbnail representation. + path = instance.data["sourcePath"].replace(".mov", ".png") + if not os.path.exists(path): + item.thumbnail(start_frame).save(path, format="png") + representation = { - "files": os.path.basename( - instance.data["sourcePath"].replace(".mov", ".png") - ), - "stagingDir": os.path.dirname(instance.data["sourcePath"]), + "files": os.path.basename(path), + "stagingDir": os.path.dirname(path), "name": "thumbnail", "thumbnail": True, "ext": "png"