mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
celaction: fixes after testing
This commit is contained in:
parent
011e635c1f
commit
f5117f4593
2 changed files with 10 additions and 8 deletions
|
|
@ -58,17 +58,17 @@ class CelactionPrelaunchHook(PreLaunchHook):
|
|||
# Add custom parameters from workfile settings
|
||||
if "render_chunk" in workfile_settings["submission_overrides"]:
|
||||
parameters += [
|
||||
"--chunk *CHUNK*"
|
||||
"--chunk", "*CHUNK*"
|
||||
]
|
||||
elif "resolution" in workfile_settings["submission_overrides"]:
|
||||
if "resolution" in workfile_settings["submission_overrides"]:
|
||||
parameters += [
|
||||
"--resolutionWidth *X*",
|
||||
"--resolutionHeight *Y*"
|
||||
"--resolutionWidth", "*X*",
|
||||
"--resolutionHeight", "*Y*"
|
||||
]
|
||||
elif "frame_range" in workfile_settings["submission_overrides"]:
|
||||
if "frame_range" in workfile_settings["submission_overrides"]:
|
||||
parameters += [
|
||||
"--frameStart *START*",
|
||||
"--frameEnd *END*"
|
||||
"--frameStart", "*START*",
|
||||
"--frameEnd", "*END*"
|
||||
]
|
||||
|
||||
winreg.SetValueEx(
|
||||
|
|
@ -76,6 +76,8 @@ class CelactionPrelaunchHook(PreLaunchHook):
|
|||
subprocess.list2cmdline(parameters)
|
||||
)
|
||||
|
||||
self.log.debug(f"__ parameters: \"{parameters}\"")
|
||||
|
||||
# setting resolution parameters
|
||||
path_submit = "\\".join([
|
||||
path_user_settings, "Dialogs", "SubmitOutput"
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ class CelactionSubmitDeadline(pyblish.api.InstancePlugin):
|
|||
|
||||
# define chunk and priority
|
||||
chunk_size = instance.context.data.get("chunk")
|
||||
if chunk_size == 0:
|
||||
if not chunk_size:
|
||||
chunk_size = self.deadline_chunk_size
|
||||
|
||||
# search for %02d pattern in name, and padding number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue