From 23ef625f81cb6b8eba09118a6d139e688cc813a5 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Fri, 21 Aug 2020 14:54:03 +0200 Subject: [PATCH] fix(fusion): moving order --- pype/plugins/fusion/publish/render_local.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pype/plugins/fusion/publish/render_local.py b/pype/plugins/fusion/publish/render_local.py index c5d1fd9b7a..19449ead67 100644 --- a/pype/plugins/fusion/publish/render_local.py +++ b/pype/plugins/fusion/publish/render_local.py @@ -13,7 +13,7 @@ class Fusionlocal(pyblish.api.InstancePlugin): """ - order = pyblish.api.ExtractorOrder + order = pyblish.api.ExtractorOrder - 0.1 label = "Render Local" hosts = ["fusion"] families = ["render.local"] @@ -52,10 +52,15 @@ class Fusionlocal(pyblish.api.InstancePlugin): 'frameStart': "%0{}d".format(len(str(frame_end))) % frame_start, 'files': collected_frames, "stagingDir": output_dir, - "tags": ["review", "ftrackreview"] } instance.data["representations"].append(repre) + # review representation + repre_preview = repre.copy() + repre_preview["name"] = repre_preview["ext"] = "mp4" + repre_preview["tags"] = ["review", "preview", "ftrackreview", "delete"] + instance.data["representations"].append(repre_preview) + self.log.debug(f"_ instance.data: {pformat(instance.data)}") if not result: