From 4fb92b6fcab6401b110ab3cdb1be8ab6440e0856 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Wed, 2 Feb 2022 10:25:33 +0100 Subject: [PATCH] Default to "Main" subset name across all hosts - 'testhost' is not refactored to default to "Main" --- openpype/hosts/aftereffects/plugins/create/create_render.py | 1 + openpype/hosts/blender/api/plugin.py | 2 ++ openpype/hosts/fusion/plugins/create/create_exr_saver.py | 1 + openpype/hosts/harmony/api/plugin.py | 2 +- openpype/hosts/houdini/api/plugin.py | 2 ++ openpype/hosts/maya/api/plugin.py | 1 + openpype/hosts/maya/plugins/create/create_animation.py | 1 - openpype/hosts/maya/plugins/create/create_ass.py | 1 - openpype/hosts/maya/plugins/create/create_assembly.py | 1 - openpype/hosts/maya/plugins/create/create_camera.py | 2 -- openpype/hosts/maya/plugins/create/create_layout.py | 1 - openpype/hosts/maya/plugins/create/create_look.py | 1 - openpype/hosts/maya/plugins/create/create_mayaascii.py | 1 - openpype/hosts/maya/plugins/create/create_pointcache.py | 1 - openpype/hosts/maya/plugins/create/create_render.py | 1 - openpype/hosts/maya/plugins/create/create_review.py | 1 - openpype/hosts/maya/plugins/create/create_rig.py | 1 - openpype/hosts/maya/plugins/create/create_xgen.py | 1 - openpype/hosts/maya/plugins/create/create_yeti_cache.py | 1 - openpype/hosts/maya/plugins/create/create_yeti_rig.py | 1 - openpype/hosts/unreal/api/plugin.py | 2 +- 21 files changed, 9 insertions(+), 17 deletions(-) diff --git a/openpype/hosts/aftereffects/plugins/create/create_render.py b/openpype/hosts/aftereffects/plugins/create/create_render.py index 5fe72d4f53..8dfc85cdc8 100644 --- a/openpype/hosts/aftereffects/plugins/create/create_render.py +++ b/openpype/hosts/aftereffects/plugins/create/create_render.py @@ -19,6 +19,7 @@ class CreateRender(openpype.api.Creator): name = "renderDefault" label = "Render on Farm" family = "render" + defaults = ["Main"] def process(self): stub = get_stub() # only after After Effects is up diff --git a/openpype/hosts/blender/api/plugin.py b/openpype/hosts/blender/api/plugin.py index 1f0b142ef6..8c9ab9a27f 100644 --- a/openpype/hosts/blender/api/plugin.py +++ b/openpype/hosts/blender/api/plugin.py @@ -131,6 +131,8 @@ def deselect_all(): class Creator(PypeCreatorMixin, avalon.api.Creator): """Base class for Creator plug-ins.""" + defaults = ['Main'] + def process(self): collection = bpy.data.collections.new(name=self.data["subset"]) bpy.context.scene.collection.children.link(collection) diff --git a/openpype/hosts/fusion/plugins/create/create_exr_saver.py b/openpype/hosts/fusion/plugins/create/create_exr_saver.py index 077e77c059..2990ce23b8 100644 --- a/openpype/hosts/fusion/plugins/create/create_exr_saver.py +++ b/openpype/hosts/fusion/plugins/create/create_exr_saver.py @@ -10,6 +10,7 @@ class CreateOpenEXRSaver(openpype.api.Creator): label = "Create OpenEXR Saver" hosts = ["fusion"] family = "render" + defaults = ["Main"] def process(self): diff --git a/openpype/hosts/harmony/api/plugin.py b/openpype/hosts/harmony/api/plugin.py index 7ac7fe510c..a50fbccc35 100644 --- a/openpype/hosts/harmony/api/plugin.py +++ b/openpype/hosts/harmony/api/plugin.py @@ -3,4 +3,4 @@ from openpype.api import PypeCreatorMixin class Creator(PypeCreatorMixin, harmony.Creator): - pass + defaults = ["Main"] diff --git a/openpype/hosts/houdini/api/plugin.py b/openpype/hosts/houdini/api/plugin.py index 63d9bba470..e9e6d6c6d7 100644 --- a/openpype/hosts/houdini/api/plugin.py +++ b/openpype/hosts/houdini/api/plugin.py @@ -14,6 +14,8 @@ class OpenPypeCreatorError(CreatorError): class Creator(PypeCreatorMixin, houdini.Creator): + defaults = ['Main'] + def process(self): try: # re-raise as standard Python exception so diff --git a/openpype/hosts/maya/api/plugin.py b/openpype/hosts/maya/api/plugin.py index a5f03cd576..4c4d4afc2d 100644 --- a/openpype/hosts/maya/api/plugin.py +++ b/openpype/hosts/maya/api/plugin.py @@ -76,6 +76,7 @@ def get_reference_node_parents(ref): class Creator(PypeCreatorMixin, avalon.maya.Creator): + defaults = ['Main'] pass diff --git a/openpype/hosts/maya/plugins/create/create_animation.py b/openpype/hosts/maya/plugins/create/create_animation.py index 7ce96166f7..11a668cfc8 100644 --- a/openpype/hosts/maya/plugins/create/create_animation.py +++ b/openpype/hosts/maya/plugins/create/create_animation.py @@ -11,7 +11,6 @@ class CreateAnimation(plugin.Creator): label = "Animation" family = "animation" icon = "male" - defaults = ['Main'] def __init__(self, *args, **kwargs): super(CreateAnimation, self).__init__(*args, **kwargs) diff --git a/openpype/hosts/maya/plugins/create/create_ass.py b/openpype/hosts/maya/plugins/create/create_ass.py index 7f1cb55821..39f226900a 100644 --- a/openpype/hosts/maya/plugins/create/create_ass.py +++ b/openpype/hosts/maya/plugins/create/create_ass.py @@ -15,7 +15,6 @@ class CreateAss(plugin.Creator): label = "Ass StandIn" family = "ass" icon = "cube" - defaults = ['Main'] def __init__(self, *args, **kwargs): super(CreateAss, self).__init__(*args, **kwargs) diff --git a/openpype/hosts/maya/plugins/create/create_assembly.py b/openpype/hosts/maya/plugins/create/create_assembly.py index fa9d692792..ff5e1d45c4 100644 --- a/openpype/hosts/maya/plugins/create/create_assembly.py +++ b/openpype/hosts/maya/plugins/create/create_assembly.py @@ -8,4 +8,3 @@ class CreateAssembly(plugin.Creator): label = "Assembly" family = "assembly" icon = "cubes" - defaults = ['Main'] diff --git a/openpype/hosts/maya/plugins/create/create_camera.py b/openpype/hosts/maya/plugins/create/create_camera.py index 09f41914e4..8b2c881036 100644 --- a/openpype/hosts/maya/plugins/create/create_camera.py +++ b/openpype/hosts/maya/plugins/create/create_camera.py @@ -11,7 +11,6 @@ class CreateCamera(plugin.Creator): label = "Camera" family = "camera" icon = "video-camera" - defaults = ['Main'] def __init__(self, *args, **kwargs): super(CreateCamera, self).__init__(*args, **kwargs) @@ -33,4 +32,3 @@ class CreateCameraRig(plugin.Creator): label = "Camera Rig" family = "camerarig" icon = "video-camera" - defaults = ['Main'] diff --git a/openpype/hosts/maya/plugins/create/create_layout.py b/openpype/hosts/maya/plugins/create/create_layout.py index 8d825d23ba..6dc87430aa 100644 --- a/openpype/hosts/maya/plugins/create/create_layout.py +++ b/openpype/hosts/maya/plugins/create/create_layout.py @@ -8,4 +8,3 @@ class CreateLayout(plugin.Creator): label = "Layout" family = "layout" icon = "cubes" - defaults = ["Main"] diff --git a/openpype/hosts/maya/plugins/create/create_look.py b/openpype/hosts/maya/plugins/create/create_look.py index 36a3120a9a..56e2640919 100644 --- a/openpype/hosts/maya/plugins/create/create_look.py +++ b/openpype/hosts/maya/plugins/create/create_look.py @@ -11,7 +11,6 @@ class CreateLook(plugin.Creator): label = "Look" family = "look" icon = "paint-brush" - defaults = ['Main'] make_tx = True def __init__(self, *args, **kwargs): diff --git a/openpype/hosts/maya/plugins/create/create_mayaascii.py b/openpype/hosts/maya/plugins/create/create_mayaascii.py index 8bbdf107c6..f54f2df812 100644 --- a/openpype/hosts/maya/plugins/create/create_mayaascii.py +++ b/openpype/hosts/maya/plugins/create/create_mayaascii.py @@ -8,4 +8,3 @@ class CreateMayaScene(plugin.Creator): label = "Maya Scene" family = "mayaScene" icon = "file-archive-o" - defaults = ['Main'] diff --git a/openpype/hosts/maya/plugins/create/create_pointcache.py b/openpype/hosts/maya/plugins/create/create_pointcache.py index d8e5fd43a7..ede152f1ef 100644 --- a/openpype/hosts/maya/plugins/create/create_pointcache.py +++ b/openpype/hosts/maya/plugins/create/create_pointcache.py @@ -11,7 +11,6 @@ class CreatePointCache(plugin.Creator): label = "Point Cache" family = "pointcache" icon = "gears" - defaults = ['Main'] def __init__(self, *args, **kwargs): super(CreatePointCache, self).__init__(*args, **kwargs) diff --git a/openpype/hosts/maya/plugins/create/create_render.py b/openpype/hosts/maya/plugins/create/create_render.py index fa5e73f3ed..b01d5a1184 100644 --- a/openpype/hosts/maya/plugins/create/create_render.py +++ b/openpype/hosts/maya/plugins/create/create_render.py @@ -64,7 +64,6 @@ class CreateRender(plugin.Creator): label = "Render" family = "rendering" icon = "eye" - defaults = ["Main"] _token = None _user = None diff --git a/openpype/hosts/maya/plugins/create/create_review.py b/openpype/hosts/maya/plugins/create/create_review.py index ae636ec691..14a21d28ca 100644 --- a/openpype/hosts/maya/plugins/create/create_review.py +++ b/openpype/hosts/maya/plugins/create/create_review.py @@ -12,7 +12,6 @@ class CreateReview(plugin.Creator): label = "Review" family = "review" icon = "video-camera" - defaults = ['Main'] keepImages = False isolate = False imagePlane = True diff --git a/openpype/hosts/maya/plugins/create/create_rig.py b/openpype/hosts/maya/plugins/create/create_rig.py index ae1670961f..8032e5fbbd 100644 --- a/openpype/hosts/maya/plugins/create/create_rig.py +++ b/openpype/hosts/maya/plugins/create/create_rig.py @@ -13,7 +13,6 @@ class CreateRig(plugin.Creator): label = "Rig" family = "rig" icon = "wheelchair" - defaults = ['Main'] def process(self): diff --git a/openpype/hosts/maya/plugins/create/create_xgen.py b/openpype/hosts/maya/plugins/create/create_xgen.py index 3953972952..8672c06a1e 100644 --- a/openpype/hosts/maya/plugins/create/create_xgen.py +++ b/openpype/hosts/maya/plugins/create/create_xgen.py @@ -8,4 +8,3 @@ class CreateXgen(plugin.Creator): label = "Xgen Interactive" family = "xgen" icon = "pagelines" - defaults = ['Main'] diff --git a/openpype/hosts/maya/plugins/create/create_yeti_cache.py b/openpype/hosts/maya/plugins/create/create_yeti_cache.py index a37d8082db..86e13b95b2 100644 --- a/openpype/hosts/maya/plugins/create/create_yeti_cache.py +++ b/openpype/hosts/maya/plugins/create/create_yeti_cache.py @@ -13,7 +13,6 @@ class CreateYetiCache(plugin.Creator): label = "Yeti Cache" family = "yeticache" icon = "pagelines" - defaults = ["Main"] def __init__(self, *args, **kwargs): super(CreateYetiCache, self).__init__(*args, **kwargs) diff --git a/openpype/hosts/maya/plugins/create/create_yeti_rig.py b/openpype/hosts/maya/plugins/create/create_yeti_rig.py index 2326958963..7abe2988cd 100644 --- a/openpype/hosts/maya/plugins/create/create_yeti_rig.py +++ b/openpype/hosts/maya/plugins/create/create_yeti_rig.py @@ -12,7 +12,6 @@ class CreateYetiRig(plugin.Creator): label = "Yeti Rig" family = "yetiRig" icon = "usb" - defaults = ["Main"] def process(self): diff --git a/openpype/hosts/unreal/api/plugin.py b/openpype/hosts/unreal/api/plugin.py index a69b12d6f5..5a6b236730 100644 --- a/openpype/hosts/unreal/api/plugin.py +++ b/openpype/hosts/unreal/api/plugin.py @@ -4,7 +4,7 @@ import openpype.api class Creator(openpype.api.Creator): """This serves as skeleton for future OpenPype specific functionality""" - pass + defaults = ['Main'] class Loader(api.Loader):