From b3dca2d0ce29baf6aa66515a5fad46bdccd3bbbd Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 29 Oct 2019 15:12:37 +0100 Subject: [PATCH] fixed ftrack integration --- .../standalonepublisher/publish/extract_review.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pype/plugins/standalonepublisher/publish/extract_review.py b/pype/plugins/standalonepublisher/publish/extract_review.py index 1b8573d6b1..fbc14785a4 100644 --- a/pype/plugins/standalonepublisher/publish/extract_review.py +++ b/pype/plugins/standalonepublisher/publish/extract_review.py @@ -177,13 +177,19 @@ class ExtractReviewSP(pyblish.api.InstancePlugin): "startFrameReview": 1, "endFrameReview": video_len }) - if repre_new.get("preview"): - repre_new.pop("preview") + # cleanup thumbnail from new repre if repre_new.get("thumbnail"): repre_new.pop("thumbnail") + if "thumbnail" in repre_new["tags"]: + repre_new["tags"].remove("thumbnail") # adding representation self.log.debug("Adding: {}".format(repre_new)) + # cleanup repre from preview + if "preview" in repre: + repre.pop("preview") + if "preview" in repre["tags"]: + repre["tags"].remove("preview") new_repres.append(repre_new) for repre in instance.data["representations"]: