mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
renamed base plugin class names
This commit is contained in:
parent
0e67a3ed39
commit
9f8fbae194
27 changed files with 32 additions and 32 deletions
|
|
@ -305,7 +305,7 @@ class LaunchCreator(LaunchQtApp):
|
|||
|
||||
|
||||
class LaunchLoader(LaunchQtApp):
|
||||
"""Launch Avalon Loader."""
|
||||
"""Launch AYON Loader."""
|
||||
|
||||
bl_idname = "wm.avalon_loader"
|
||||
bl_label = "Load..."
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ class BlenderExtractor(Extractor):
|
|||
settings_category = "blender"
|
||||
|
||||
|
||||
class BaseCreator(Creator):
|
||||
class BlenderCreator(Creator):
|
||||
"""Base class for Blender Creator plug-ins."""
|
||||
defaults = ['Main']
|
||||
|
||||
|
|
@ -280,7 +280,7 @@ class BaseCreator(Creator):
|
|||
return instance_node
|
||||
|
||||
def collect_instances(self):
|
||||
"""Override abstract method from BaseCreator.
|
||||
"""Override abstract method from BlenderCreator.
|
||||
Collect existing instances related to this creator plugin."""
|
||||
|
||||
# Cache instances in shared data
|
||||
|
|
@ -307,7 +307,7 @@ class BaseCreator(Creator):
|
|||
self._add_instance_to_context(instance)
|
||||
|
||||
def update_instances(self, update_list):
|
||||
"""Override abstract method from BaseCreator.
|
||||
"""Override abstract method from BlenderCreator.
|
||||
Store changes of existing instances so they can be recollected.
|
||||
|
||||
Args:
|
||||
|
|
@ -391,7 +391,7 @@ class BaseCreator(Creator):
|
|||
]
|
||||
|
||||
|
||||
class AssetLoader(LoaderPlugin):
|
||||
class BlenderLoader(LoaderPlugin):
|
||||
"""A basic AssetLoader for Blender
|
||||
|
||||
This will implement the basic logic for linking/appending assets
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class BlenderLegacyConvertor(ProductConvertorPlugin):
|
|||
parameter on them.
|
||||
|
||||
This is using cached entries done in
|
||||
:py:meth:`~BaseCreator.cache_instance_data()`
|
||||
:py:meth:`~BlenderCreator.cache_instance_data()`
|
||||
|
||||
"""
|
||||
self.legacy_instances = self.collection_shared_data.get(
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import bpy
|
|||
from ayon_blender.api import lib, plugin
|
||||
|
||||
|
||||
class CreateAction(plugin.BaseCreator):
|
||||
class CreateAction(plugin.BlenderCreator):
|
||||
"""Action output for character rigs."""
|
||||
|
||||
identifier = "io.openpype.creators.blender.action"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
from ayon_blender.api import plugin, lib
|
||||
|
||||
|
||||
class CreateAnimation(plugin.BaseCreator):
|
||||
class CreateAnimation(plugin.BlenderCreator):
|
||||
"""Animation output for character rigs."""
|
||||
|
||||
identifier = "io.openpype.creators.blender.animation"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import bpy
|
|||
from ayon_blender.api import plugin, lib
|
||||
|
||||
|
||||
class CreateBlendScene(plugin.BaseCreator):
|
||||
class CreateBlendScene(plugin.BlenderCreator):
|
||||
"""Generic group of assets."""
|
||||
|
||||
identifier = "io.openpype.creators.blender.blendscene"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from ayon_blender.api import plugin, lib
|
|||
from ayon_blender.api.pipeline import AVALON_INSTANCES
|
||||
|
||||
|
||||
class CreateCamera(plugin.BaseCreator):
|
||||
class CreateCamera(plugin.BlenderCreator):
|
||||
"""Polygonal static geometry."""
|
||||
|
||||
identifier = "io.openpype.creators.blender.camera"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import bpy
|
|||
from ayon_blender.api import plugin, lib
|
||||
|
||||
|
||||
class CreateLayout(plugin.BaseCreator):
|
||||
class CreateLayout(plugin.BlenderCreator):
|
||||
"""Layout output for character rigs."""
|
||||
|
||||
identifier = "io.openpype.creators.blender.layout"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import bpy
|
|||
from ayon_blender.api import plugin, lib
|
||||
|
||||
|
||||
class CreateModel(plugin.BaseCreator):
|
||||
class CreateModel(plugin.BlenderCreator):
|
||||
"""Polygonal static geometry."""
|
||||
|
||||
identifier = "io.openpype.creators.blender.model"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
from ayon_blender.api import plugin, lib
|
||||
|
||||
|
||||
class CreatePointcache(plugin.BaseCreator):
|
||||
class CreatePointcache(plugin.BlenderCreator):
|
||||
"""Polygonal static geometry."""
|
||||
|
||||
identifier = "io.openpype.creators.blender.pointcache"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ from ayon_blender.api.render_lib import prepare_rendering
|
|||
from ayon_blender.api.workio import save_file
|
||||
|
||||
|
||||
class CreateRenderlayer(plugin.BaseCreator):
|
||||
class CreateRenderlayer(plugin.BlenderCreator):
|
||||
"""Single baked camera."""
|
||||
|
||||
identifier = "io.openpype.creators.blender.render"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
from ayon_blender.api import plugin, lib
|
||||
|
||||
|
||||
class CreateReview(plugin.BaseCreator):
|
||||
class CreateReview(plugin.BlenderCreator):
|
||||
"""Single baked camera."""
|
||||
|
||||
identifier = "io.openpype.creators.blender.review"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import bpy
|
|||
from ayon_blender.api import plugin, lib
|
||||
|
||||
|
||||
class CreateRig(plugin.BaseCreator):
|
||||
class CreateRig(plugin.BlenderCreator):
|
||||
"""Artist-friendly rig with controls to direct motion."""
|
||||
|
||||
identifier = "io.openpype.creators.blender.rig"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
from ayon_blender.api import plugin, lib
|
||||
|
||||
|
||||
class CreateUSD(plugin.BaseCreator):
|
||||
class CreateUSD(plugin.BlenderCreator):
|
||||
"""Create USD Export"""
|
||||
|
||||
identifier = "io.openpype.creators.blender.usd"
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@ import bpy
|
|||
import ayon_api
|
||||
|
||||
from ayon_core.pipeline import CreatedInstance, AutoCreator
|
||||
from ayon_blender.api.plugin import BaseCreator
|
||||
from ayon_blender.api.plugin import BlenderCreator
|
||||
from ayon_blender.api.pipeline import (
|
||||
AVALON_PROPERTY,
|
||||
AVALON_CONTAINERS
|
||||
)
|
||||
|
||||
|
||||
class CreateWorkfile(BaseCreator, AutoCreator):
|
||||
class CreateWorkfile(BlenderCreator, AutoCreator):
|
||||
"""Workfile auto-creator.
|
||||
|
||||
The workfile instance stores its data on the `AVALON_CONTAINERS` collection
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ def append_workfile(context, fname, do_import):
|
|||
collection.children.link(coll)
|
||||
|
||||
|
||||
class AppendBlendLoader(plugin.AssetLoader):
|
||||
class AppendBlendLoader(plugin.BlenderLoader):
|
||||
"""Append workfile in Blender (unmanaged)
|
||||
|
||||
Warning:
|
||||
|
|
@ -59,7 +59,7 @@ class AppendBlendLoader(plugin.AssetLoader):
|
|||
return
|
||||
|
||||
|
||||
class ImportBlendLoader(plugin.AssetLoader):
|
||||
class ImportBlendLoader(plugin.BlenderLoader):
|
||||
"""Import workfile in the current Blender scene (unmanaged)
|
||||
|
||||
Warning:
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ from ayon_blender.api.pipeline import (
|
|||
logger = logging.getLogger("ayon").getChild("blender").getChild("load_action")
|
||||
|
||||
|
||||
class BlendActionLoader(plugin.AssetLoader):
|
||||
class BlendActionLoader(plugin.BlenderLoader):
|
||||
"""Load action from a .blend file.
|
||||
|
||||
Warning:
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from ayon_blender.api import plugin
|
|||
from ayon_blender.api.pipeline import AVALON_PROPERTY
|
||||
|
||||
|
||||
class BlendAnimationLoader(plugin.AssetLoader):
|
||||
class BlendAnimationLoader(plugin.BlenderLoader):
|
||||
"""Load animations from a .blend file.
|
||||
|
||||
Warning:
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ from ayon_blender.api.pipeline import (
|
|||
)
|
||||
|
||||
|
||||
class AudioLoader(plugin.AssetLoader):
|
||||
class AudioLoader(plugin.BlenderLoader):
|
||||
"""Load audio in Blender."""
|
||||
|
||||
product_types = {"audio"}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ from ayon_blender.api.pipeline import (
|
|||
)
|
||||
|
||||
|
||||
class BlendLoader(plugin.AssetLoader):
|
||||
class BlendLoader(plugin.BlenderLoader):
|
||||
"""Load assets from a .blend file."""
|
||||
|
||||
product_types = {"model", "rig", "layout", "camera"}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ from ayon_blender.api.pipeline import (
|
|||
)
|
||||
|
||||
|
||||
class BlendSceneLoader(plugin.AssetLoader):
|
||||
class BlendSceneLoader(plugin.BlenderLoader):
|
||||
"""Load assets from a .blend file."""
|
||||
|
||||
product_types = {"blendScene"}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ from ayon_blender.api.pipeline import (
|
|||
from ayon_blender.api import plugin, lib
|
||||
|
||||
|
||||
class CacheModelLoader(plugin.AssetLoader):
|
||||
class CacheModelLoader(plugin.BlenderLoader):
|
||||
"""Load cache models.
|
||||
|
||||
Stores the imported asset in a collection named after the asset.
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ from ayon_blender.api.pipeline import (
|
|||
)
|
||||
|
||||
|
||||
class AbcCameraLoader(plugin.AssetLoader):
|
||||
class AbcCameraLoader(plugin.BlenderLoader):
|
||||
"""Load a camera from Alembic file.
|
||||
|
||||
Stores the imported asset in an empty named after the asset.
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ from ayon_blender.api.pipeline import (
|
|||
)
|
||||
|
||||
|
||||
class FbxCameraLoader(plugin.AssetLoader):
|
||||
class FbxCameraLoader(plugin.BlenderLoader):
|
||||
"""Load a camera from FBX.
|
||||
|
||||
Stores the imported asset in an empty named after the asset.
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ from ayon_blender.api.pipeline import (
|
|||
)
|
||||
|
||||
|
||||
class FbxModelLoader(plugin.AssetLoader):
|
||||
class FbxModelLoader(plugin.BlenderLoader):
|
||||
"""Load FBX models.
|
||||
|
||||
Stores the imported asset in an empty named after the asset.
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ from ayon_blender.api.pipeline import (
|
|||
from ayon_blender.api import plugin
|
||||
|
||||
|
||||
class JsonLayoutLoader(plugin.AssetLoader):
|
||||
class JsonLayoutLoader(plugin.BlenderLoader):
|
||||
"""Load layout published from Unreal."""
|
||||
|
||||
product_types = {"layout"}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ from ayon_blender.api.pipeline import (
|
|||
)
|
||||
|
||||
|
||||
class BlendLookLoader(plugin.AssetLoader):
|
||||
class BlendLookLoader(plugin.BlenderLoader):
|
||||
"""Load models from a .blend file.
|
||||
|
||||
Because they come from a .blend file we can simply link the collection that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue