added support for pools

This commit is contained in:
wikoreman 2018-07-18 16:59:52 +02:00
parent 598e1558d2
commit 7957e854ca

View file

@ -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