From 269817c93c853294cc2cac12a3cd8b7abd3d1b86 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Wed, 7 Feb 2024 18:47:16 +0100 Subject: [PATCH] use 'AYON_MENU_LABEL' instead of 'AVALON_LABEL' --- client/ayon_core/hosts/blender/api/ops.py | 2 +- client/ayon_core/hosts/fusion/api/menu.py | 2 +- .../ayon_core/hosts/harmony/api/TB_sceneOpened.js | 4 ++-- client/ayon_core/hosts/hiero/api/menu.py | 2 +- .../hosts/houdini/api/creator_node_shelves.py | 2 +- client/ayon_core/hosts/houdini/api/lib.py | 2 +- .../hosts/houdini/startup/MainMenuCommon.xml | 2 +- client/ayon_core/hosts/max/api/menu.py | 2 +- client/ayon_core/hosts/maya/api/menu.py | 2 +- client/ayon_core/hosts/nuke/api/lib.py | 15 +++++++-------- client/ayon_core/hosts/nuke/api/pipeline.py | 8 ++------ .../hosts/nuke/plugins/create/convert_legacy.py | 4 ++-- client/ayon_core/hosts/resolve/api/menu.py | 2 +- .../hosts/substancepainter/api/pipeline.py | 2 +- .../hosts/tvpaint/api/communication_server.py | 2 +- .../tvpaint_plugin/plugin_code/library.cpp | 4 ++-- client/ayon_core/lib/applications.py | 2 +- 17 files changed, 27 insertions(+), 32 deletions(-) diff --git a/client/ayon_core/hosts/blender/api/ops.py b/client/ayon_core/hosts/blender/api/ops.py index 365208c287..dcbc44bcad 100644 --- a/client/ayon_core/hosts/blender/api/ops.py +++ b/client/ayon_core/hosts/blender/api/ops.py @@ -374,7 +374,7 @@ class TOPBAR_MT_avalon(bpy.types.Menu): """Avalon menu.""" bl_idname = "TOPBAR_MT_avalon" - bl_label = os.environ.get("AVALON_LABEL") + bl_label = os.environ.get("AYON_MENU_LABEL") def draw(self, context): """Draw the menu in the UI.""" diff --git a/client/ayon_core/hosts/fusion/api/menu.py b/client/ayon_core/hosts/fusion/api/menu.py index 54277b8853..a2b0a7b628 100644 --- a/client/ayon_core/hosts/fusion/api/menu.py +++ b/client/ayon_core/hosts/fusion/api/menu.py @@ -21,7 +21,7 @@ from .pulse import FusionPulse -MENU_LABEL = os.environ["AVALON_LABEL"] +MENU_LABEL = os.environ["AYON_MENU_LABEL"] self = sys.modules[__name__] diff --git a/client/ayon_core/hosts/harmony/api/TB_sceneOpened.js b/client/ayon_core/hosts/harmony/api/TB_sceneOpened.js index a03ad2a028..1fb0d295e7 100644 --- a/client/ayon_core/hosts/harmony/api/TB_sceneOpened.js +++ b/client/ayon_core/hosts/harmony/api/TB_sceneOpened.js @@ -370,7 +370,7 @@ function start() { app.avalonMenu = null; for (var i = 0 ; i < actions.length; i++) { - label = System.getenv('AVALON_LABEL'); + label = System.getenv('AYON_MENU_LABEL'); if (actions[i].text == label) { app.avalonMenu = true; } @@ -378,7 +378,7 @@ function start() { var menu = null; if (app.avalonMenu == null) { - menu = menuBar.addMenu(System.getenv('AVALON_LABEL')); + menu = menuBar.addMenu(System.getenv('AYON_MENU_LABEL')); } // menu = menuBar.addMenu('Avalon'); diff --git a/client/ayon_core/hosts/hiero/api/menu.py b/client/ayon_core/hosts/hiero/api/menu.py index 4e061edbf8..990d3e96d1 100644 --- a/client/ayon_core/hosts/hiero/api/menu.py +++ b/client/ayon_core/hosts/hiero/api/menu.py @@ -63,7 +63,7 @@ def menu_install(): # here is the best place to add menu - menu_name = os.environ['AVALON_LABEL'] + menu_name = os.environ['AYON_MENU_LABEL'] context_label = get_context_label() diff --git a/client/ayon_core/hosts/houdini/api/creator_node_shelves.py b/client/ayon_core/hosts/houdini/api/creator_node_shelves.py index 73bb0e6ec2..567bb245db 100644 --- a/client/ayon_core/hosts/houdini/api/creator_node_shelves.py +++ b/client/ayon_core/hosts/houdini/api/creator_node_shelves.py @@ -173,7 +173,7 @@ def install(): os.remove(filepath) icon = get_ayon_icon_filepath() - tab_menu_label = os.environ.get("AVALON_LABEL") or "AYON" + tab_menu_label = os.environ.get("AYON_MENU_LABEL") or "AYON" # Create context only to get creator plugins, so we don't reset and only # populate what we need to retrieve the list of creator plugins diff --git a/client/ayon_core/hosts/houdini/api/lib.py b/client/ayon_core/hosts/houdini/api/lib.py index 89763aec08..019676c0bc 100644 --- a/client/ayon_core/hosts/houdini/api/lib.py +++ b/client/ayon_core/hosts/houdini/api/lib.py @@ -1040,7 +1040,7 @@ def self_publish(): def add_self_publish_button(node): """Adds a self publish button to the rop node.""" - label = os.environ.get("AVALON_LABEL") or "AYON" + label = os.environ.get("AYON_MENU_LABEL") or "AYON" button_parm = hou.ButtonParmTemplate( "ayon_self_publish", diff --git a/client/ayon_core/hosts/houdini/startup/MainMenuCommon.xml b/client/ayon_core/hosts/houdini/startup/MainMenuCommon.xml index 50c0d4dbee..b2ea142cd5 100644 --- a/client/ayon_core/hosts/houdini/startup/MainMenuCommon.xml +++ b/client/ayon_core/hosts/houdini/startup/MainMenuCommon.xml @@ -4,7 +4,7 @@