From c154aa5993cb6f8e40adea516eef2ad319b7b320 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 26 Feb 2021 16:11:24 +0100 Subject: [PATCH] added Creator plugin for houdini and fixed inheritance in it's creators --- pype/hosts/houdini/api/plugin.py | 6 ++++++ pype/hosts/houdini/plugins/create/create_alembic_camera.py | 4 ++-- pype/hosts/houdini/plugins/create/create_pointcache.py | 4 ++-- pype/hosts/houdini/plugins/create/create_vbd_cache.py | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 pype/hosts/houdini/api/plugin.py diff --git a/pype/hosts/houdini/api/plugin.py b/pype/hosts/houdini/api/plugin.py new file mode 100644 index 0000000000..864cc59f09 --- /dev/null +++ b/pype/hosts/houdini/api/plugin.py @@ -0,0 +1,6 @@ +from avalon import houdini +from pype.api import PypeCreatorMixin + + +class Creator(PypeCreatorMixin, houdini.Creator): + pass diff --git a/pype/hosts/houdini/plugins/create/create_alembic_camera.py b/pype/hosts/houdini/plugins/create/create_alembic_camera.py index cf8ac41b62..2a849ddaa0 100644 --- a/pype/hosts/houdini/plugins/create/create_alembic_camera.py +++ b/pype/hosts/houdini/plugins/create/create_alembic_camera.py @@ -1,7 +1,7 @@ -from avalon import houdini +from pype.hosts.houdini.api import plugin -class CreateAlembicCamera(houdini.Creator): +class CreateAlembicCamera(plugin.Creator): """Single baked camera from Alembic ROP""" name = "camera" diff --git a/pype/hosts/houdini/plugins/create/create_pointcache.py b/pype/hosts/houdini/plugins/create/create_pointcache.py index ae7e845083..a36ee1c965 100644 --- a/pype/hosts/houdini/plugins/create/create_pointcache.py +++ b/pype/hosts/houdini/plugins/create/create_pointcache.py @@ -1,7 +1,7 @@ -from avalon import houdini +from pype.hosts.houdini.api import plugin -class CreatePointCache(houdini.Creator): +class CreatePointCache(plugin.Creator): """Alembic ROP to pointcache""" name = "pointcache" diff --git a/pype/hosts/houdini/plugins/create/create_vbd_cache.py b/pype/hosts/houdini/plugins/create/create_vbd_cache.py index e862d5c96d..01401f0ce4 100644 --- a/pype/hosts/houdini/plugins/create/create_vbd_cache.py +++ b/pype/hosts/houdini/plugins/create/create_vbd_cache.py @@ -1,7 +1,7 @@ -from avalon import houdini +from pype.hosts.houdini.api import plugin -class CreateVDBCache(houdini.Creator): +class CreateVDBCache(plugin.Creator): """OpenVDB from Geometry ROP""" name = "vbdcache"