From 4ddc5079dae9394f295239677584512e844550d5 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Mon, 20 Jan 2020 18:07:24 +0100 Subject: [PATCH] fix(global): if baked mov then do not integrate it if on farm --- pype/plugins/global/publish/collect_filesequences.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pype/plugins/global/publish/collect_filesequences.py b/pype/plugins/global/publish/collect_filesequences.py index 2d8dd1b1c2..b7b41ea88b 100644 --- a/pype/plugins/global/publish/collect_filesequences.py +++ b/pype/plugins/global/publish/collect_filesequences.py @@ -309,7 +309,7 @@ class CollectRenderedFrames(pyblish.api.ContextPlugin): self.log.info(" - {}".format(str(collection))) ext = collection.tail.lstrip(".") - + if "slate" in instance.data["families"]: frame_start += 1 @@ -343,6 +343,11 @@ class CollectRenderedFrames(pyblish.api.ContextPlugin): if "slate" in instance.data["families"]: frame_start += 1 + tags = ["review"] + + if baked_mov_path: + tags.append("delete") + representation = { "name": rem.split(".")[-1], "ext": "{}".format(rem.split(".")[-1]), @@ -351,7 +356,7 @@ class CollectRenderedFrames(pyblish.api.ContextPlugin): "frameStart": frame_start, "anatomy_template": "render", "fps": fps, - "tags": ["review"], + "tags": tags } instance.data["representations"].append( representation)