fixed ftrack integration

This commit is contained in:
iLLiCiTiT 2019-10-29 15:12:37 +01:00
parent dede49f2c6
commit b3dca2d0ce

View file

@ -177,13 +177,19 @@ class ExtractReviewSP(pyblish.api.InstancePlugin):
"startFrameReview": 1, "startFrameReview": 1,
"endFrameReview": video_len "endFrameReview": video_len
}) })
if repre_new.get("preview"): # cleanup thumbnail from new repre
repre_new.pop("preview")
if repre_new.get("thumbnail"): if repre_new.get("thumbnail"):
repre_new.pop("thumbnail") repre_new.pop("thumbnail")
if "thumbnail" in repre_new["tags"]:
repre_new["tags"].remove("thumbnail")
# adding representation # adding representation
self.log.debug("Adding: {}".format(repre_new)) 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) new_repres.append(repre_new)
for repre in instance.data["representations"]: for repre in instance.data["representations"]: