Merge pull request #1394 from pypeclub/feature/1393-nuke-deadline-submission-with-gpu

This commit is contained in:
Milan Kolar 2021-04-27 17:56:10 +02:00 committed by GitHub
commit 63875be297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 69 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

@ -382,10 +382,6 @@
"optional": true,
"active": true,
"bake_attributes": []
},
"MayaSubmitDeadline": {
"enabled": true,
"tile_assembler_plugin": "DraftTileAssembler"
}
},
"load": {

View file

@ -86,12 +86,6 @@
},
"ExtractSlateFrame": {
"viewer_lut_raw": false
},
"NukeSubmitDeadline": {
"deadline_priority": 50,
"deadline_pool": "",
"deadline_pool_secondary": "",
"deadline_chunk_size": 1
}
},
"load": {

View file

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

View file

@ -283,34 +283,6 @@
"is_list": true
}
]
},
{
"type": "dict",
"collapsible": true,
"key": "MayaSubmitDeadline",
"label": "Submit maya job to deadline",
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "enum",
"key": "tile_assembler_plugin",
"label": "Tile Assembler Plugin",
"multiselection": false,
"enum_items": [
{
"DraftTileAssembler": "Draft Tile Assembler"
},
{
"oiio": "Open Image IO"
}
]
}
]
}
]
}

View file

@ -146,35 +146,6 @@
"label": "Viewer LUT raw"
}
]
},
{
"type": "dict",
"collapsible": true,
"key": "NukeSubmitDeadline",
"label": "NukeSubmitDeadline",
"is_group": true,
"children": [
{
"type": "number",
"key": "deadline_priority",
"label": "deadline_priority"
},
{
"type": "text",
"key": "deadline_pool",
"label": "deadline_pool"
},
{
"type": "text",
"key": "deadline_pool_secondary",
"label": "deadline_pool_secondary"
},
{
"type": "number",
"key": "deadline_chunk_size",
"label": "deadline_chunk_size"
}
]
}
]
}