From 598e1558d252d7d0c035b1e23226bfc16e1e47d6 Mon Sep 17 00:00:00 2001 From: wikoreman Date: Wed, 18 Jul 2018 16:57:00 +0200 Subject: [PATCH 1/3] added pools options --- colorbleed/plugins/maya/create/colorbleed_renderglobals.py | 1 + 1 file changed, 1 insertion(+) diff --git a/colorbleed/plugins/maya/create/colorbleed_renderglobals.py b/colorbleed/plugins/maya/create/colorbleed_renderglobals.py index 3ca857a11c..3cf147a14d 100644 --- a/colorbleed/plugins/maya/create/colorbleed_renderglobals.py +++ b/colorbleed/plugins/maya/create/colorbleed_renderglobals.py @@ -30,6 +30,7 @@ class CreateRenderGlobals(avalon.maya.Creator): data["priority"] = 50 data["whitelist"] = False data["machineList"] = "" + data["pools"] = "" self.data = data self.options = {"useSelection": False} # Force no content From 7957e854ca3392be8ef16f1d49bd44db30cd1abd Mon Sep 17 00:00:00 2001 From: wikoreman Date: Wed, 18 Jul 2018 16:59:52 +0200 Subject: [PATCH 2/3] added support for pools --- colorbleed/plugins/maya/publish/collect_renderlayers.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/colorbleed/plugins/maya/publish/collect_renderlayers.py b/colorbleed/plugins/maya/publish/collect_renderlayers.py index f1495a0b89..2a377a933e 100644 --- a/colorbleed/plugins/maya/publish/collect_renderlayers.py +++ b/colorbleed/plugins/maya/publish/collect_renderlayers.py @@ -122,6 +122,15 @@ class CollectMayaRenderlayers(pyblish.api.ContextPlugin): options = {"renderGlobals": {}} options["renderGlobals"]["Priority"] = attributes["priority"] + + # Check for specific pools + pool_str = attributes.get("pools", None) + if pool_str is not None and not "": + pools = pool_str.split(";") + options["renderGlobals"]["Pool"] = pools[0] + if len(pools) > 1: + options["renderGlobals"]["SecondaryPool"] = pools[1] + legacy = attributes["useLegacyRenderLayers"] options["renderGlobals"]["UseLegacyRenderLayers"] = legacy From b02cb7e3db427ff99df03cc970efe441ace156da Mon Sep 17 00:00:00 2001 From: wikoreman Date: Thu, 19 Jul 2018 11:08:15 +0200 Subject: [PATCH 3/3] simplified check for pools --- colorbleed/plugins/maya/publish/collect_renderlayers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorbleed/plugins/maya/publish/collect_renderlayers.py b/colorbleed/plugins/maya/publish/collect_renderlayers.py index 2a377a933e..c8156836a2 100644 --- a/colorbleed/plugins/maya/publish/collect_renderlayers.py +++ b/colorbleed/plugins/maya/publish/collect_renderlayers.py @@ -125,7 +125,7 @@ class CollectMayaRenderlayers(pyblish.api.ContextPlugin): # Check for specific pools pool_str = attributes.get("pools", None) - if pool_str is not None and not "": + if pool_str: pools = pool_str.split(";") options["renderGlobals"]["Pool"] = pools[0] if len(pools) > 1: