mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix(nuke): deadline submission parameters from presets
group and department
This commit is contained in:
parent
048af1621b
commit
ea1f64e285
1 changed files with 6 additions and 3 deletions
|
|
@ -22,10 +22,13 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
families = ["render.farm", "prerender.farm"]
|
||||
optional = True
|
||||
|
||||
# presets
|
||||
deadline_priority = 50
|
||||
deadline_chunk_size = 1
|
||||
deadline_pool = ""
|
||||
deadline_pool_secondary = ""
|
||||
deadline_chunk_size = 1
|
||||
deadline_group = ""
|
||||
deadline_department = ""
|
||||
|
||||
def process(self, instance):
|
||||
instance.data["toBeRenderedOn"] = "deadline"
|
||||
|
|
@ -162,9 +165,11 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
|
||||
"Priority": priority,
|
||||
"ChunkSize": chunk_size,
|
||||
"Department": self.deadline_department,
|
||||
|
||||
"Pool": self.deadline_pool,
|
||||
"SecondaryPool": self.deadline_pool_secondary,
|
||||
"Group": self.deadline_group,
|
||||
|
||||
"Plugin": "Nuke",
|
||||
"Frames": "{start}-{end}".format(
|
||||
|
|
@ -229,8 +234,6 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
if path.lower().startswith('pype_'):
|
||||
environment[path] = os.environ[path]
|
||||
|
||||
# environment["PATH"] = os.environ["PATH"]
|
||||
# self.log.debug("enviro: {}".format(environment['PYPE_SCRIPTS']))
|
||||
clean_environment = {}
|
||||
for key, value in environment.items():
|
||||
clean_path = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue