From 2307e50bbe44eace305ab3ff38f9ef2b8e2347a7 Mon Sep 17 00:00:00 2001 From: JoshQuake Date: Wed, 11 Jun 2025 23:00:12 -0700 Subject: [PATCH 1/4] add quick access push assets button adds an addon preference to show a Push Assets button directly next to the Pipeline menu for quick access. Its usefulness is arguable as it only removes 2 clicks from the usual way to push assets. Jack I will let you decide if it's worth adding lol --- src/addons/send2ue/core/utilities.py | 3 +++ src/addons/send2ue/properties.py | 5 +++++ src/addons/send2ue/ui/addon_preferences.py | 2 ++ src/addons/send2ue/ui/header_menu.py | 14 ++++++++++++++ 4 files changed, 24 insertions(+) diff --git a/src/addons/send2ue/core/utilities.py b/src/addons/send2ue/core/utilities.py index 8c33f564..4dc026d0 100644 --- a/src/addons/send2ue/core/utilities.py +++ b/src/addons/send2ue/core/utilities.py @@ -1131,6 +1131,9 @@ def setup_project(*args): if not os.environ.get('SEND2UE_HIDE_PIPELINE_MENU'): header_menu.add_pipeline_menu() + # create the quick access button + if addon.preferences.quick_access_button: + header_menu.add_quick_access_button() def draw_error_message(self, context): """ diff --git a/src/addons/send2ue/properties.py b/src/addons/send2ue/properties.py index 3ea0ac4a..93c14b48 100644 --- a/src/addons/send2ue/properties.py +++ b/src/addons/send2ue/properties.py @@ -23,6 +23,11 @@ class Send2UeAddonProperties: default=True, description=f"This automatically creates the pre-defined collection (Export)" ) + quick_access_button: bpy.props.BoolProperty( + name="Enable quick access push button", + default=True, + description="Adds a Push Assets button next to the Pipeline menu" + ) # ------------- Remote Execution settings ------------------ rpc_response_timeout: bpy.props.IntProperty( name="RPC Response Timeout", diff --git a/src/addons/send2ue/ui/addon_preferences.py b/src/addons/send2ue/ui/addon_preferences.py index c7b23192..33b082e9 100644 --- a/src/addons/send2ue/ui/addon_preferences.py +++ b/src/addons/send2ue/ui/addon_preferences.py @@ -114,6 +114,8 @@ def draw(self, context): :param context: The context of this interface. """ row = self.layout.row() + row.prop(self, 'quick_access_button') + row = self.layout.row() row.prop(self, 'automatically_create_collections') row = self.layout.row() row.label(text='RPC Response Timeout') diff --git a/src/addons/send2ue/ui/header_menu.py b/src/addons/send2ue/ui/header_menu.py index 3b48f36f..4c2d36c9 100644 --- a/src/addons/send2ue/ui/header_menu.py +++ b/src/addons/send2ue/ui/header_menu.py @@ -55,6 +55,20 @@ class TOPBAR_MT_Pipeline(bpy.types.Menu): def draw(self, context): pass +def quick_access(self, context): + self.layout.operator('wm.send2ue') + +def add_quick_access_button(): + try: + bpy.types.TOPBAR_MT_editor_menus.remove(quick_access) + finally: + bpy.types.TOPBAR_MT_editor_menus.append(quick_access) + +def remove_quick_access_button(): + try: + bpy.types.TOPBAR_MT_editor_menus.remove(quick_access) + finally: + pass def pipeline_menu(self, context): """ From dc8c2abcb12ec8b28c6c9471d1e655f296eb00d8 Mon Sep 17 00:00:00 2001 From: JoshQuake Date: Mon, 16 Jun 2025 16:58:04 -0700 Subject: [PATCH 2/4] set default to false --- src/addons/send2ue/properties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/send2ue/properties.py b/src/addons/send2ue/properties.py index 93c14b48..339bf3e4 100644 --- a/src/addons/send2ue/properties.py +++ b/src/addons/send2ue/properties.py @@ -25,7 +25,7 @@ class Send2UeAddonProperties: ) quick_access_button: bpy.props.BoolProperty( name="Enable quick access push button", - default=True, + default=False, description="Adds a Push Assets button next to the Pipeline menu" ) # ------------- Remote Execution settings ------------------ From a422e62d9c3f4e5e98f30bb4640eb552ecdef7ca Mon Sep 17 00:00:00 2001 From: JoshQuake Date: Tue, 17 Jun 2025 09:29:48 -0700 Subject: [PATCH 3/4] Squashed commit of the following: commit 4d35b6eeac09b6558602281b7a2531eb46670508 Author: Casper <71441748+Kaparrs@users.noreply.github.com> Date: Fri Jun 13 11:20:26 2025 +0300 fix(send2ue/properties): Missing space --- src/addons/send2ue/properties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/send2ue/properties.py b/src/addons/send2ue/properties.py index 339bf3e4..f90fa076 100644 --- a/src/addons/send2ue/properties.py +++ b/src/addons/send2ue/properties.py @@ -173,7 +173,7 @@ class Send2UeSceneProperties(property_class): PathModes.SEND_TO_PROJECT.value, 'Send to Project', ( - 'Sends the intermediate files to a temporary location on disk and then imports them into' + 'Sends the intermediate files to a temporary location on disk and then imports them into ' 'the Unreal Project. This does not require any extra configuration, but might not be ideal if ' 'your intermediate files need to be under source control.' ), From 3c2444f018a87c259042780914a776221cdd49ea Mon Sep 17 00:00:00 2001 From: JoshQuake Date: Tue, 17 Jun 2025 09:30:42 -0700 Subject: [PATCH 4/4] Revert "Squashed commit of the following:" This reverts commit a422e62d9c3f4e5e98f30bb4640eb552ecdef7ca. --- src/addons/send2ue/properties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/send2ue/properties.py b/src/addons/send2ue/properties.py index f90fa076..339bf3e4 100644 --- a/src/addons/send2ue/properties.py +++ b/src/addons/send2ue/properties.py @@ -173,7 +173,7 @@ class Send2UeSceneProperties(property_class): PathModes.SEND_TO_PROJECT.value, 'Send to Project', ( - 'Sends the intermediate files to a temporary location on disk and then imports them into ' + 'Sends the intermediate files to a temporary location on disk and then imports them into' 'the Unreal Project. This does not require any extra configuration, but might not be ideal if ' 'your intermediate files need to be under source control.' ),