mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
added support for pools
This commit is contained in:
parent
598e1558d2
commit
7957e854ca
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue