From fe60dc0c199b69b61faf6b2966c5fc49675cfb24 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Thu, 28 Jan 2021 18:02:59 +0100 Subject: [PATCH] Harmony allow disabling write node for farm --- pype/hosts/harmony/js/publish/CollectFarmRender.js | 3 ++- pype/hosts/harmony/plugins/publish/collect_farm_render.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pype/hosts/harmony/js/publish/CollectFarmRender.js b/pype/hosts/harmony/js/publish/CollectFarmRender.js index 153c38e868..70d2aa5aa9 100644 --- a/pype/hosts/harmony/js/publish/CollectFarmRender.js +++ b/pype/hosts/harmony/js/publish/CollectFarmRender.js @@ -42,7 +42,8 @@ CollectFarmRender.prototype.getRenderNodeSettings = function(n) { n, frame.current(), 'DRAWING_TYPE'), node.getTextAttr( n, frame.current(), 'LEADING_ZEROS'), - node.getTextAttr(n, frame.current(), 'START') + node.getTextAttr(n, frame.current(), 'START'), + node.getEnable(n) ]; return output; diff --git a/pype/hosts/harmony/plugins/publish/collect_farm_render.py b/pype/hosts/harmony/plugins/publish/collect_farm_render.py index a3c51c7b7a..4ef9bfa088 100644 --- a/pype/hosts/harmony/plugins/publish/collect_farm_render.py +++ b/pype/hosts/harmony/plugins/publish/collect_farm_render.py @@ -117,7 +117,7 @@ class CollectFarmRender(pype.lib.abstract_collect_render. if data["family"] != "renderFarm": continue - # 0 - filename / 1 - type / 2 - zeros / 3 - start + # 0 - filename / 1 - type / 2 - zeros / 3 - start / 4 - enabled info = harmony.send( { "function": f"PypeHarmony.Publish.{self_name}." @@ -155,7 +155,7 @@ class CollectFarmRender(pype.lib.abstract_collect_render. asset=api.Session["AVALON_ASSET"], attachTo=False, setMembers=[node], - publish=True, + publish=info[4], review=False, renderer=None, priority=50,