there are not added nuke arguments in prelaunch hooks

This commit is contained in:
iLLiCiTiT 2020-11-30 10:06:48 +01:00
parent ec0127c79a
commit 6a4c768f21
4 changed files with 7 additions and 36 deletions

View file

@ -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):

View file

@ -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):

View file

@ -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):

View file

@ -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):