nuke: adding deadline support for gpu rendering

fix old name of argument
This commit is contained in:
Jakub Jezek 2021-04-21 18:37:02 +02:00
parent 6f1c985cec
commit 4ddb9c4c3f
No known key found for this signature in database
GPG key ID: D8548FBF690B100A
3 changed files with 13 additions and 2 deletions

View file

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

View file

@ -21,7 +21,8 @@
"secondary_pool": "",
"group": "",
"department": "",
"limit_groups": {}
"limit_groups": {},
"use_gpu": true
},
"HarmonySubmitDeadline": {
"enabled": true,

View file

@ -128,6 +128,11 @@
"key": "department",
"label": "Department"
},
{
"type": "boolean",
"key": "use_gpu",
"label": "Use GPU"
},
{
"type": "dict-modifiable",
"key": "limit_groups",