mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Merge pull request #1155 from pypeclub/feature/maya-deadline-group-and-limits
Maya: support for Deadline Group and Limit Groups
This commit is contained in:
commit
0e8bfe8aa8
3 changed files with 25 additions and 3 deletions
|
|
@ -254,6 +254,8 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
use_published = True
|
||||
tile_assembler_plugin = "PypeTileAssembler"
|
||||
asset_dependencies = False
|
||||
limit_groups = []
|
||||
group = "none"
|
||||
|
||||
def process(self, instance):
|
||||
"""Plugin entry point."""
|
||||
|
|
@ -402,8 +404,15 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
# Arbitrary username, for visualisation in Monitor
|
||||
self.payload_skeleton["JobInfo"]["UserName"] = deadline_user
|
||||
# Set job priority
|
||||
self.payload_skeleton["JobInfo"]["Priority"] = self._instance.data.get(
|
||||
"priority", 50)
|
||||
self.payload_skeleton["JobInfo"]["Priority"] = \
|
||||
self._instance.data.get("priority", 50)
|
||||
|
||||
if self.group != "none":
|
||||
self.payload_skeleton["JobInfo"]["Group"] = self.group
|
||||
|
||||
if self.limit_groups:
|
||||
self.payload_skeleton["JobInfo"]["LimitGroups"] = \
|
||||
",".join(self.limit_groups)
|
||||
# Optional, enable double-click to preview rendered
|
||||
# frames from Deadline Monitor
|
||||
self.payload_skeleton["JobInfo"]["OutputDirectory0"] = \
|
||||
|
|
|
|||
|
|
@ -5,7 +5,9 @@
|
|||
"optional": false,
|
||||
"tile_assembler_plugin": "oiio",
|
||||
"use_published": true,
|
||||
"asset_dependencies": true
|
||||
"asset_dependencies": true,
|
||||
"group": "none",
|
||||
"limit": []
|
||||
},
|
||||
"NukeSubmitDeadline": {
|
||||
"enabled": true,
|
||||
|
|
|
|||
|
|
@ -52,6 +52,17 @@
|
|||
"type": "boolean",
|
||||
"key": "asset_dependencies",
|
||||
"label": "Use Asset dependencies"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"key": "group",
|
||||
"label": "Group Name"
|
||||
},
|
||||
{
|
||||
"type": "list",
|
||||
"key": "limit",
|
||||
"label": "Limit Groups",
|
||||
"object_type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue