mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
added maya
This commit is contained in:
parent
cb07c41d92
commit
9940ff2fa9
1 changed files with 17 additions and 0 deletions
17
pype/hooks/maya/pre_launch_args.py
Normal file
17
pype/hooks/maya/pre_launch_args.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import os
|
||||
from pype.lib import PreLaunchHook
|
||||
|
||||
|
||||
class MayaLaunchArguments(PreLaunchHook):
|
||||
"""Add path to last workfile to launch arguments."""
|
||||
order = 0
|
||||
hosts = ["maya"]
|
||||
|
||||
def execute(self):
|
||||
"""Prepare suprocess launch arguments for NukeX."""
|
||||
if self.data.get("start_last_workfile"):
|
||||
last_workfile = self.data.get("last_workfile_path")
|
||||
if os.path.exists(last_workfile):
|
||||
self.launch_context.launch_args.append(
|
||||
"\"{}\"".format(last_workfile)
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue