mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Merge pull request #132 from aardschok/REN-47
Add pools to deadline submission
This commit is contained in:
commit
9fed22bac5
2 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue