diff --git a/openpype/hosts/unreal/api/__init__.py b/openpype/hosts/unreal/api/__init__.py index df86c09073..e70749004b 100644 --- a/openpype/hosts/unreal/api/__init__.py +++ b/openpype/hosts/unreal/api/__init__.py @@ -4,6 +4,26 @@ import logging from avalon import api as avalon from pyblish import api as pyblish import openpype.hosts.unreal +from .plugin import( + Loader, + Creator +) +from .pipeline import ( + install, + uninstall, + ls, + publish, + containerise, + show_creator, + show_loader, + show_publisher, + show_manager, + show_experimental_tools, + show_tools_dialog, + show_tools_popup, + instantiate, +) + logger = logging.getLogger("openpype.hosts.unreal") @@ -15,6 +35,26 @@ CREATE_PATH = os.path.join(PLUGINS_DIR, "create") INVENTORY_PATH = os.path.join(PLUGINS_DIR, "inventory") +__all__ = [ + "install", + "uninstall", + "Creator", + "Loader", + "ls", + "publish", + "containerise", + "show_creator", + "show_loader", + "show_publisher", + "show_manager", + "show_experimental_tools", + "show_tools_dialog", + "show_tools_popup", + "instantiate" +] + + + def install(): """Install Unreal configuration for OpenPype.""" print("-=" * 40) diff --git a/openpype/hosts/unreal/integration/Content/Python/init_unreal.py b/openpype/hosts/unreal/integration/Content/Python/init_unreal.py index 4445abb1b0..2ecd301c25 100644 --- a/openpype/hosts/unreal/integration/Content/Python/init_unreal.py +++ b/openpype/hosts/unreal/integration/Content/Python/init_unreal.py @@ -4,12 +4,14 @@ openpype_detected = True try: from avalon import api except ImportError as exc: + api = None openpype_detected = False unreal.log_error("Avalon: cannot load Avalon [ {} ]".format(exc)) try: - from openpype.host.unreal import api as openpype_host + from openpype.hosts.unreal import api as openpype_host except ImportError as exc: + openpype_host = None openpype_detected = False unreal.log_error("OpenPype: cannot load OpenPype [ {} ]".format(exc)) diff --git a/openpype/hosts/unreal/integration/Source/OpenPype/OpenPype.Build.cs b/openpype/hosts/unreal/integration/Source/OpenPype/OpenPype.Build.cs index cf50041aed..c30835b63d 100644 --- a/openpype/hosts/unreal/integration/Source/OpenPype/OpenPype.Build.cs +++ b/openpype/hosts/unreal/integration/Source/OpenPype/OpenPype.Build.cs @@ -4,7 +4,7 @@ using UnrealBuildTool; public class OpenPype : ModuleRules { - public Avalon(ReadOnlyTargetRules Target) : base(Target) + public OpenPype(ReadOnlyTargetRules Target) : base(Target) { PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs; diff --git a/openpype/hosts/unreal/integration/Source/OpenPype/Private/OpenPype.cpp b/openpype/hosts/unreal/integration/Source/OpenPype/Private/OpenPype.cpp index 65da780ad6..15c46b3862 100644 --- a/openpype/hosts/unreal/integration/Source/OpenPype/Private/OpenPype.cpp +++ b/openpype/hosts/unreal/integration/Source/OpenPype/Private/OpenPype.cpp @@ -1,4 +1,4 @@ -#include "Avalon.h" +#include "OpenPype.h" #include "LevelEditor.h" #include "OpenPypePythonBridge.h" #include "OpenPypeStyle.h" @@ -75,7 +75,7 @@ void FOpenPypeModule::AddToobarEntry(FToolBarBuilder& ToolbarBuilder) { ToolbarBuilder.AddToolBarButton( FUIAction( - FExecuteAction::CreateRaw(this, &FAvalonModule::MenuPopup), + FExecuteAction::CreateRaw(this, &FOpenPypeModule::MenuPopup), NULL, FIsActionChecked() diff --git a/openpype/hosts/unreal/integration/Source/OpenPype/Private/OpenPypePythonBridge.cpp b/openpype/hosts/unreal/integration/Source/OpenPype/Private/OpenPypePythonBridge.cpp index 767f089374..8113231503 100644 --- a/openpype/hosts/unreal/integration/Source/OpenPype/Private/OpenPypePythonBridge.cpp +++ b/openpype/hosts/unreal/integration/Source/OpenPype/Private/OpenPypePythonBridge.cpp @@ -3,11 +3,11 @@ UOpenPypePythonBridge* UOpenPypePythonBridge::Get() { TArray OpenPypePythonBridgeClasses; - GetDerivedClasses(UAvalonPythonBridge::StaticClass(), OpenPypePythonBridgeClasses); + GetDerivedClasses(UOpenPypePythonBridge::StaticClass(), OpenPypePythonBridgeClasses); int32 NumClasses = OpenPypePythonBridgeClasses.Num(); if (NumClasses > 0) { - return Cast(AvalonPythonBridgeClasses[NumClasses - 1]->GetDefaultObject()); + return Cast(OpenPypePythonBridgeClasses[NumClasses - 1]->GetDefaultObject()); } return nullptr; }; \ No newline at end of file diff --git a/openpype/hosts/unreal/integration/Source/OpenPype/Public/AssetContainer.h b/openpype/hosts/unreal/integration/Source/OpenPype/Public/AssetContainer.h index 1195f95cba..3c2a360c78 100644 --- a/openpype/hosts/unreal/integration/Source/OpenPype/Public/AssetContainer.h +++ b/openpype/hosts/unreal/integration/Source/OpenPype/Public/AssetContainer.h @@ -12,7 +12,7 @@ * */ UCLASS(Blueprintable) -class AVALON_API UAssetContainer : public UAssetUserData +class OPENPYPE_API UAssetContainer : public UAssetUserData { GENERATED_BODY() diff --git a/openpype/hosts/unreal/integration/Source/OpenPype/Public/OpenPypeLib.h b/openpype/hosts/unreal/integration/Source/OpenPype/Public/OpenPypeLib.h index 3b4afe1408..59e9c8bd76 100644 --- a/openpype/hosts/unreal/integration/Source/OpenPype/Public/OpenPypeLib.h +++ b/openpype/hosts/unreal/integration/Source/OpenPype/Public/OpenPypeLib.h @@ -1,7 +1,7 @@ #pragma once #include "Engine.h" -#include "AvalonLib.generated.h" +#include "OpenPypeLib.generated.h" UCLASS(Blueprintable) diff --git a/openpype/hosts/unreal/integration/Source/OpenPype/Public/OpenPypeStyle.h b/openpype/hosts/unreal/integration/Source/OpenPype/Public/OpenPypeStyle.h index 0e9400406a..fbc8bcdd5b 100644 --- a/openpype/hosts/unreal/integration/Source/OpenPype/Public/OpenPypeStyle.h +++ b/openpype/hosts/unreal/integration/Source/OpenPype/Public/OpenPypeStyle.h @@ -18,5 +18,5 @@ public: private: static TUniquePtr< FSlateStyleSet > Create(); - static TUniquePtr< FSlateStyleSet > AvalonStyleInstance; + static TUniquePtr< FSlateStyleSet > OpenPypeStyleInstance; }; \ No newline at end of file diff --git a/repos/avalon-unreal-integration b/repos/avalon-unreal-integration deleted file mode 160000 index 43f6ea9439..0000000000 --- a/repos/avalon-unreal-integration +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 43f6ea943980b29c02a170942b566ae11f2b7080