Skip to content

Commit 081bd18

Browse files
committed
remove Export submenu
all 3 menu items under Unity are now at the same level
1 parent f503e6f commit 081bd18

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

Assets/Integrations/Autodesk/maya/scripts/unitySetupUI.mel

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ global string $unityIconPath = "unity.png";
99

1010
global string $unityFamilyLabel = "The UnityFbxForMaya plugin (v.{Version}) allows you to reliably exchange and review your work between Maya and Unity.";
1111
global string $unityImportLabel = "Import an FBX file from a Unity project and auto-configure for exporting";
12-
global string $unityExportLabel = "Export Model or Animation to Unity";
1312
global string $unityExportModelLabel = "Export Model to Unity";
1413
global string $unityExportAnimLabel = "Export Animation to Unity";
1514

1615
global string $unityCommandsFile = "unityCommands.mel";
1716
global string $unityImportMenuName = "Import";
18-
global string $unityExportMenuLabel = "Export";
19-
global string $unityExportMenuName = "UnityFbxForMayaExport";
20-
global string $unityExportModelMenuName = "Model Only";
21-
global string $unityExportAnimMenuName = "Animation Only";
17+
global string $unityExportModelMenuName = "Export Model Only";
18+
global string $unityExportAnimMenuName = "Export Animation Only";
2219
global string $unityImportCommand = "unityImport";
2320
global string $unityExportModelCommand = "unityExportModel";
2421
global string $unityExportAnimCommand = "unityExportAnim";
@@ -55,17 +52,13 @@ global proc unityInstallUI(){
5552
global string $unityPluginVersion;
5653
global string $unityFamilyLabel;
5754
global string $unityImportLabel;
58-
global string $unityExportLabel;
59-
global string $unityExportMenuLabel;
6055
global string $unityExportModelLabel;
6156
global string $unityExportAnimLabel;
6257
global string $unityCommandsFile;
6358
global string $unityImportMenuName;
64-
global string $unityExportMenuName;
6559
global string $unityExportModelMenuName;
6660
global string $unityExportAnimMenuName;
6761
global string $unityImportCommand;
68-
global string $unityExportCommand;
6962
global string $unityExportModelCommand;
7063
global string $unityExportAnimCommand;
7164

@@ -78,10 +71,9 @@ global proc unityInstallUI(){
7871
menuItem -parent $parentMenu -insertAfter $unityMenuInsertAfter -divider true -longDivider false -version $pluginVersion $unityMenuDivider;
7972
menuItem -parent $parentMenu -insertAfter $unityMenuDivider -subMenu true -label $unityMenuLabel -tearOff true -version $pluginVersion -image $unityIconPath -annotation $unityFamilyLabel $unityMenuName;
8073
menuItem -parent $unityMenuName -label $unityImportMenuName -version $pluginVersion -image $unityImportIconPath -annotation $unityImportLabel -command $unityImportCommand;
81-
menuItem -parent $unityMenuName -label $unityExportMenuLabel -version $pluginVersion -image $unityExportIconPath -annotation $unityExportLabel -subMenu true -tearOff true $unityExportMenuName;
82-
83-
menuItem -parent $unityExportMenuName -label $unityExportModelMenuName -version $pluginVersion -annotation $unityExportModelLabel -command $unityExportModelCommand;
84-
menuItem -parent $unityExportMenuName -label $unityExportAnimMenuName -version $pluginVersion -annotation $unityExportAnimLabel -command $unityExportAnimCommand;
74+
75+
menuItem -parent $unityMenuName -label $unityExportModelMenuName -version $pluginVersion -image $unityExportIconPath -annotation $unityExportModelLabel -command $unityExportModelCommand;
76+
menuItem -parent $unityMenuName -label $unityExportAnimMenuName -version $pluginVersion -image $unityExportIconPath -annotation $unityExportAnimLabel -command $unityExportAnimCommand;
8577

8678
unityRemoveNativeMenuOnLoad();
8779

0 commit comments

Comments
 (0)