From 8232b119518dc375bcd89a22961acdb447cf355e Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Fri, 9 Oct 2020 15:44:11 +0200 Subject: [PATCH] launcher TVPaint 11 --- environments/tvpaint.json | 2 ++ launchers/tvpaint11.toml | 9 +++++++++ launchers/windows/tvpaint11.bat | 19 +++++++++++++++++++ presets/global/applications.json | 1 + 4 files changed, 31 insertions(+) create mode 100644 environments/tvpaint.json create mode 100644 launchers/tvpaint11.toml create mode 100644 launchers/windows/tvpaint11.bat diff --git a/environments/tvpaint.json b/environments/tvpaint.json new file mode 100644 index 0000000..2c63c08 --- /dev/null +++ b/environments/tvpaint.json @@ -0,0 +1,2 @@ +{ +} diff --git a/launchers/tvpaint11.toml b/launchers/tvpaint11.toml new file mode 100644 index 0000000..24022c9 --- /dev/null +++ b/launchers/tvpaint11.toml @@ -0,0 +1,9 @@ +executable = "tvpaint11" +schema = "avalon-core:application-1.0" +application_dir = "tvpaint" +label = "TVPaint Animation 11" +icon = "app_icons/tvpaint.png" +launch_hook = "pype/hooks/tvpaint/prelaunch.py/TvpaintPrelaunchHook" + +ftrack_label = "TVPaint Animation" +ftrack_icon = '{}/app_icons/tvpaint.png' diff --git a/launchers/windows/tvpaint11.bat b/launchers/windows/tvpaint11.bat new file mode 100644 index 0000000..cfea12a --- /dev/null +++ b/launchers/windows/tvpaint11.bat @@ -0,0 +1,19 @@ +set __app__="TVPaint Animation 11" +set __app_dir__="C:\Program Files\TVPaint Developpement\TVPaint Animation 11 (64bits)\" +set __exe__="C:\Program Files\TVPaint Developpement\TVPaint Animation 11 (64bits)\TVPaint Animation 11 (64bits).exe" + +if not exist %__exe__% goto :missing_app + +pushd %__app_dir__% + +if "%PYPE_TVPAINT_PROJECT_FILE%"=="" ( + start %__app__% %__exe__% %* +) else ( + start %__app__% %__exe__% "%PYPE_TVPAINT_PROJECT_FILE%" %* +) + +goto :eof + +:missing_app + echo ERROR: %__app__% not found in %__exe__% + exit /B 1 diff --git a/presets/global/applications.json b/presets/global/applications.json index ad29c9c..116eb02 100644 --- a/presets/global/applications.json +++ b/presets/global/applications.json @@ -5,6 +5,7 @@ "blender_2.83": true, "celaction_local": true, "celaction_remote": true, + "tvpaint11": true, "fusion_9": true, "fusion_16": true, "harmony_17": true,