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