From b29005961526fe684fa65ba8c8f010f5df506737 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 26 Feb 2021 15:59:03 +0100 Subject: [PATCH] created harmony specific creator using pype's mixin --- pype/hosts/harmony/api/plugin.py | 6 ++++++ pype/hosts/harmony/plugins/create/create_farm_render.py | 3 ++- pype/hosts/harmony/plugins/create/create_render.py | 3 ++- pype/hosts/harmony/plugins/create/create_template.py | 4 ++-- 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 pype/hosts/harmony/api/plugin.py diff --git a/pype/hosts/harmony/api/plugin.py b/pype/hosts/harmony/api/plugin.py new file mode 100644 index 0000000000..3525ad686d --- /dev/null +++ b/pype/hosts/harmony/api/plugin.py @@ -0,0 +1,6 @@ +from avalon import harmony +from pype.api import PypeCreatorMixin + + +class Creator(PypeCreatorMixin, harmony.Creator): + pass diff --git a/pype/hosts/harmony/plugins/create/create_farm_render.py b/pype/hosts/harmony/plugins/create/create_farm_render.py index e134f28f43..a1b198b672 100644 --- a/pype/hosts/harmony/plugins/create/create_farm_render.py +++ b/pype/hosts/harmony/plugins/create/create_farm_render.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- """Create Composite node for render on farm.""" from avalon import harmony +from pype.hosts.harmony.api import plugin -class CreateFarmRender(harmony.Creator): +class CreateFarmRender(plugin.Creator): """Composite node for publishing renders.""" name = "renderDefault" diff --git a/pype/hosts/harmony/plugins/create/create_render.py b/pype/hosts/harmony/plugins/create/create_render.py index 8e3408d900..a047fbff77 100644 --- a/pype/hosts/harmony/plugins/create/create_render.py +++ b/pype/hosts/harmony/plugins/create/create_render.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- """Create render node.""" from avalon import harmony +from pype.hosts.harmony.api import plugin -class CreateRender(harmony.Creator): +class CreateRender(plugin.Creator): """Composite node for publishing renders.""" name = "renderDefault" diff --git a/pype/hosts/harmony/plugins/create/create_template.py b/pype/hosts/harmony/plugins/create/create_template.py index babc3fe8d7..628606c9f4 100644 --- a/pype/hosts/harmony/plugins/create/create_template.py +++ b/pype/hosts/harmony/plugins/create/create_template.py @@ -1,7 +1,7 @@ -from avalon import harmony +from pype.hosts.harmony.api import plugin -class CreateTemplate(harmony.Creator): +class CreateTemplate(plugin.Creator): """Composite node for publishing to templates.""" name = "templateDefault"