mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
there are not added nuke arguments in prelaunch hooks
This commit is contained in:
parent
ec0127c79a
commit
6a4c768f21
4 changed files with 7 additions and 36 deletions
|
|
@ -7,18 +7,8 @@ class HieroLaunchArguments(PreLaunchHook):
|
|||
hosts = ["hiero"]
|
||||
|
||||
def execute(self):
|
||||
"""Prepare suprocess launch arguments for NukeX."""
|
||||
# Get executable
|
||||
executable = self.launch_context.launch_args[0]
|
||||
|
||||
if isinstance(executable, str):
|
||||
executable = [executable]
|
||||
|
||||
# Add `nukex` argument and make sure it's bind to execuable
|
||||
executable.append("--hiero")
|
||||
|
||||
self.launch_context.launch_args[0] = executable
|
||||
|
||||
"""Prepare suprocess launch arguments for Hiero."""
|
||||
# Add path to workfile to arguments
|
||||
if self.data.get("start_last_workfile"):
|
||||
last_workfile = self.data.get("last_workfile_path")
|
||||
if os.path.exists(last_workfile):
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@ class MayaLaunchArguments(PreLaunchHook):
|
|||
hosts = ["maya"]
|
||||
|
||||
def execute(self):
|
||||
"""Prepare suprocess launch arguments for NukeX."""
|
||||
"""Prepare suprocess launch arguments for Maya."""
|
||||
# Add path to workfile to arguments
|
||||
if self.data.get("start_last_workfile"):
|
||||
last_workfile = self.data.get("last_workfile_path")
|
||||
if os.path.exists(last_workfile):
|
||||
|
|
|
|||
|
|
@ -7,18 +7,8 @@ class NukeStudioLaunchArguments(PreLaunchHook):
|
|||
hosts = ["nukestudio"]
|
||||
|
||||
def execute(self):
|
||||
"""Prepare suprocess launch arguments for NukeX."""
|
||||
# Get executable
|
||||
executable = self.launch_context.launch_args[0]
|
||||
|
||||
if isinstance(executable, str):
|
||||
executable = [executable]
|
||||
|
||||
# Add `nukex` argument and make sure it's bind to execuable
|
||||
executable.append("--studio")
|
||||
|
||||
self.launch_context.launch_args[0] = executable
|
||||
|
||||
"""Prepare suprocess launch arguments for NukeStudio."""
|
||||
# Add path to workfile to arguments
|
||||
if self.data.get("start_last_workfile"):
|
||||
last_workfile = self.data.get("last_workfile_path")
|
||||
if os.path.exists(last_workfile):
|
||||
|
|
|
|||
|
|
@ -8,17 +8,7 @@ class NukeXLaunchArguments(PreLaunchHook):
|
|||
|
||||
def execute(self):
|
||||
"""Prepare suprocess launch arguments for NukeX."""
|
||||
# Get executable
|
||||
executable = self.launch_context.launch_args[0]
|
||||
|
||||
if isinstance(executable, str):
|
||||
executable = [executable]
|
||||
|
||||
# Add `nukex` argument and make sure it's bind to execuable
|
||||
executable.append("--nukex")
|
||||
|
||||
self.launch_context.launch_args[0] = executable
|
||||
|
||||
# Add path to workfile to arguments
|
||||
if self.data.get("start_last_workfile"):
|
||||
last_workfile = self.data.get("last_workfile_path")
|
||||
if os.path.exists(last_workfile):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue