From 19e5ab8b1a28120d6b31d43b4310cfa6495bebc2 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 30 Nov 2020 10:40:21 +0100 Subject: [PATCH] changed current filtering from hosts to app groups --- pype/hooks/aftereffects/pre_launch_args.py | 2 +- pype/hooks/celaction/pre_celaction_registers.py | 2 +- pype/hooks/fusion/pre_fusion_setup.py | 2 +- pype/hooks/harmony/pre_launch_args.py | 2 +- pype/hooks/hiero/pre_launch_args.py | 2 +- pype/hooks/maya/pre_launch_args.py | 2 +- pype/hooks/nukestudio/pre_launch_args.py | 2 +- pype/hooks/nukex/pre_launch_args.py | 2 +- pype/hooks/photoshop/pre_launch_args.py | 2 +- pype/hooks/resolve/pre_resolve_setup.py | 2 +- pype/hooks/tvpaint/pre_install_pywin.py | 2 +- pype/hooks/tvpaint/pre_launch_args.py | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pype/hooks/aftereffects/pre_launch_args.py b/pype/hooks/aftereffects/pre_launch_args.py index 01406d495c..e39247b983 100644 --- a/pype/hooks/aftereffects/pre_launch_args.py +++ b/pype/hooks/aftereffects/pre_launch_args.py @@ -9,7 +9,7 @@ class AfterEffectsPrelaunchHook(PreLaunchHook): Hook add python executable and execute python script of AfterEffects implementation before AfterEffects executable. """ - hosts = ["aftereffects"] + app_groups = ["aftereffects"] def execute(self): # Pop tvpaint executable diff --git a/pype/hooks/celaction/pre_celaction_registers.py b/pype/hooks/celaction/pre_celaction_registers.py index f592026699..3f9d81fb98 100644 --- a/pype/hooks/celaction/pre_celaction_registers.py +++ b/pype/hooks/celaction/pre_celaction_registers.py @@ -13,7 +13,7 @@ class CelactionPrelaunchHook(PreLaunchHook): shell script. """ workfile_ext = "scn" - hosts = ["celaction"] + app_groups = ["celaction"] platforms = ["windows"] def execute(self): diff --git a/pype/hooks/fusion/pre_fusion_setup.py b/pype/hooks/fusion/pre_fusion_setup.py index ac7dda4250..d4402e9a04 100644 --- a/pype/hooks/fusion/pre_fusion_setup.py +++ b/pype/hooks/fusion/pre_fusion_setup.py @@ -9,7 +9,7 @@ class FusionPrelaunch(PreLaunchHook): This hook will check if current workfile path has Fusion project inside. """ - hosts = ["fusion"] + app_groups = ["fusion"] def execute(self): # making sure pyton 3.6 is installed at provided path diff --git a/pype/hooks/harmony/pre_launch_args.py b/pype/hooks/harmony/pre_launch_args.py index 70fac5bb76..70c05eb352 100644 --- a/pype/hooks/harmony/pre_launch_args.py +++ b/pype/hooks/harmony/pre_launch_args.py @@ -9,7 +9,7 @@ class HarmonyPrelaunchHook(PreLaunchHook): Hook add python executable and execute python script of harmony implementation before harmony executable. """ - hosts = ["harmony"] + app_groups = ["harmony"] def execute(self): # Pop tvpaint executable diff --git a/pype/hooks/hiero/pre_launch_args.py b/pype/hooks/hiero/pre_launch_args.py index 7139f57bbb..feca6dc3eb 100644 --- a/pype/hooks/hiero/pre_launch_args.py +++ b/pype/hooks/hiero/pre_launch_args.py @@ -4,7 +4,7 @@ from pype.lib import PreLaunchHook class HieroLaunchArguments(PreLaunchHook): order = 0 - hosts = ["hiero"] + app_groups = ["hiero"] def execute(self): """Prepare suprocess launch arguments for Hiero.""" diff --git a/pype/hooks/maya/pre_launch_args.py b/pype/hooks/maya/pre_launch_args.py index 570c8e79b8..8b37bac15b 100644 --- a/pype/hooks/maya/pre_launch_args.py +++ b/pype/hooks/maya/pre_launch_args.py @@ -5,7 +5,7 @@ from pype.lib import PreLaunchHook class MayaLaunchArguments(PreLaunchHook): """Add path to last workfile to launch arguments.""" order = 0 - hosts = ["maya"] + app_groups = ["maya"] def execute(self): """Prepare suprocess launch arguments for Maya.""" diff --git a/pype/hooks/nukestudio/pre_launch_args.py b/pype/hooks/nukestudio/pre_launch_args.py index a5e04bf956..e572ca32a2 100644 --- a/pype/hooks/nukestudio/pre_launch_args.py +++ b/pype/hooks/nukestudio/pre_launch_args.py @@ -4,7 +4,7 @@ from pype.lib import PreLaunchHook class NukeStudioLaunchArguments(PreLaunchHook): order = 0 - hosts = ["nukestudio"] + app_groups = ["nukestudio"] def execute(self): """Prepare suprocess launch arguments for NukeStudio.""" diff --git a/pype/hooks/nukex/pre_launch_args.py b/pype/hooks/nukex/pre_launch_args.py index 39ccb5a58a..f0e5cf7733 100644 --- a/pype/hooks/nukex/pre_launch_args.py +++ b/pype/hooks/nukex/pre_launch_args.py @@ -4,7 +4,7 @@ from pype.lib import PreLaunchHook class NukeXLaunchArguments(PreLaunchHook): order = 0 - hosts = ["nukex"] + app_groups = ["nukex"] def execute(self): """Prepare suprocess launch arguments for NukeX.""" diff --git a/pype/hooks/photoshop/pre_launch_args.py b/pype/hooks/photoshop/pre_launch_args.py index 2c88f62157..b13e7d1e0f 100644 --- a/pype/hooks/photoshop/pre_launch_args.py +++ b/pype/hooks/photoshop/pre_launch_args.py @@ -9,7 +9,7 @@ class PhotoshopPrelaunchHook(PreLaunchHook): Hook add python executable and execute python script of photoshop implementation before photoshop executable. """ - hosts = ["photoshop"] + app_groups = ["photoshop"] def execute(self): # Pop tvpaint executable diff --git a/pype/hooks/resolve/pre_resolve_setup.py b/pype/hooks/resolve/pre_resolve_setup.py index 336fabf0c4..4f6d33c6eb 100644 --- a/pype/hooks/resolve/pre_resolve_setup.py +++ b/pype/hooks/resolve/pre_resolve_setup.py @@ -11,7 +11,7 @@ class ResolvePrelaunch(PreLaunchHook): path to the project by environment variable to Premiere launcher shell script. """ - hosts = ["resolve"] + app_groups = ["resolve"] def execute(self): # making sure pyton 3.6 is installed at provided path diff --git a/pype/hooks/tvpaint/pre_install_pywin.py b/pype/hooks/tvpaint/pre_install_pywin.py index b51267934b..ca9242c4c8 100644 --- a/pype/hooks/tvpaint/pre_install_pywin.py +++ b/pype/hooks/tvpaint/pre_install_pywin.py @@ -9,7 +9,7 @@ class PreInstallPyWin(PreLaunchHook): """Hook makes sure there is installed python module pywin32 on windows.""" # WARNING This hook will probably be deprecated in Pype 3 - kept for test order = 10 - hosts = ["tvpaint"] + app_groups = ["tvpaint"] platforms = ["windows"] def execute(self): diff --git a/pype/hooks/tvpaint/pre_launch_args.py b/pype/hooks/tvpaint/pre_launch_args.py index 9d80e6fddb..13ec320fa0 100644 --- a/pype/hooks/tvpaint/pre_launch_args.py +++ b/pype/hooks/tvpaint/pre_launch_args.py @@ -16,7 +16,7 @@ class TvpaintPrelaunchHook(PreLaunchHook): Existence of last workfile is checked. If workfile does not exists tries to copy templated workfile from predefined path. """ - hosts = ["tvpaint"] + app_groups = ["tvpaint"] def execute(self): # Pop tvpaint executable