mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge remote-tracking branch 'origin/feature/nuke-slate-prerender' into master-testing-local
# Conflicts: # pype/plugins/nuke/publish/submit_nuke_deadline.py
This commit is contained in:
commit
be031f71e2
1 changed files with 9 additions and 9 deletions
|
|
@ -42,15 +42,11 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
|
||||
# get output path
|
||||
render_path = instance.data['path']
|
||||
render_dir = os.path.normpath(os.path.dirname(render_path))
|
||||
script_path = context.data["currentFile"]
|
||||
|
||||
# frame start definition
|
||||
frame_start = int(instance.data["frameStart"])
|
||||
# exception for slate workflow
|
||||
if "slate" in instance.data["families"]:
|
||||
frame_start -= 1
|
||||
|
||||
script_path = context.data["currentFile"]
|
||||
self._frame_start -= 1
|
||||
|
||||
response = self.payload_submit(instance,
|
||||
script_path,
|
||||
|
|
@ -66,6 +62,10 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
script_path = instance.data.get("bakeScriptPath")
|
||||
exe_node_name = instance.data.get("bakeWriteNodeName")
|
||||
|
||||
# exception for slate workflow
|
||||
if "slate" in instance.data["families"]:
|
||||
self._frame_start += 1
|
||||
|
||||
resp = self.payload_submit(instance,
|
||||
script_path,
|
||||
render_path,
|
||||
|
|
@ -108,14 +108,14 @@ class NukeSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
"UserName": self._deadline_user,
|
||||
|
||||
"Priority": instance.data["deadlinePriority"],
|
||||
|
||||
|
||||
"Pool": "2d",
|
||||
"SecondaryPool": "2d",
|
||||
|
||||
"Plugin": "Nuke",
|
||||
"Frames": "{start}-{end}".format(
|
||||
start=frame_start,
|
||||
end=int(instance.data["frameEnd"])
|
||||
start=self._frame_start,
|
||||
end=self._frame_end
|
||||
),
|
||||
"Comment": self._comment,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue