Merge pull request #132 from aardschok/REN-47

Add pools to deadline submission
This commit is contained in:
Wijnand Koreman 2018-07-19 12:40:33 +02:00 committed by GitHub
commit 9fed22bac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -32,6 +32,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

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