mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
nuke: adding deadline support for gpu rendering
fix old name of argument
This commit is contained in:
parent
6f1c985cec
commit
4ddb9c4c3f
3 changed files with 13 additions and 2 deletions
|
|
@ -31,6 +31,7 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
group = ""
|
||||
department = ""
|
||||
limit_groups = {}
|
||||
use_gpu = False
|
||||
|
||||
def process(self, instance):
|
||||
instance.data["toBeRenderedOn"] = "deadline"
|
||||
|
|
@ -206,6 +207,10 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
# Resolve relative references
|
||||
"ProjectPath": script_path,
|
||||
"AWSAssetFile0": render_path,
|
||||
|
||||
# using GPU by default
|
||||
"UseGpu": self.use_gpu,
|
||||
|
||||
# Only the specific write node is rendered.
|
||||
"WriteNode": exe_node_name
|
||||
},
|
||||
|
|
@ -375,7 +380,7 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
list: captured groups list
|
||||
"""
|
||||
captured_groups = []
|
||||
for lg_name, list_node_class in self.deadline_limit_groups.items():
|
||||
for lg_name, list_node_class in self.limit_groups.items():
|
||||
for node_class in list_node_class:
|
||||
for node in nuke.allNodes(recurseGroups=True):
|
||||
# ignore all nodes not member of defined class
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
"secondary_pool": "",
|
||||
"group": "",
|
||||
"department": "",
|
||||
"limit_groups": {}
|
||||
"limit_groups": {},
|
||||
"use_gpu": true
|
||||
},
|
||||
"HarmonySubmitDeadline": {
|
||||
"enabled": true,
|
||||
|
|
|
|||
|
|
@ -128,6 +128,11 @@
|
|||
"key": "department",
|
||||
"label": "Department"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"key": "use_gpu",
|
||||
"label": "Use GPU"
|
||||
},
|
||||
{
|
||||
"type": "dict-modifiable",
|
||||
"key": "limit_groups",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue