@@ -11,6 +11,11 @@ global string $unityFamilyLabel = "The UnityFbxForMaya plugin allows you to reli
11
11
global string $unityImportLabel = "Import FBX file from Unity Project and auto-configure for exporting";
12
12
global string $unityExportLabel = "Export Model to Unity";
13
13
14
+ global string $unityCommandsFile = "unityCommands.mel";
15
+ global string $unityImportMenuName = "Import";
16
+ global string $unityExportMenuName = "Export";
17
+ global string $unityImportCommand = "unityImport";
18
+ global string $unityExportCommand = "unityExport";
14
19
15
20
global proc string unityWhatsNewVersion(){
16
21
return `about -q -version`;
@@ -28,9 +33,9 @@ global proc unitySetupUI(){
28
33
evalDeferred -lowestPriority "buildFileMenu; \
29
34
$parentMenu = $gMainFileMenu; \
30
35
$pluginVersion = unityWhatsNewVersion(); \
31
- source \"unityCommands.mel\" ; \
36
+ source $unityCommandsFile ; \
32
37
menuItem -parent $parentMenu -insertAfter $unityMenuInsertAfter -divider true -longDivider false -version $pluginVersion $unityMenuDivider; \
33
38
menuItem -parent $parentMenu -insertAfter $unityMenuDivider -subMenu true -label $unityMenuLabel -tearOff true -version $pluginVersion -image $unityIconPath -annotation $unityFamilyLabel $unityMenuName; \
34
- menuItem -parent $unityMenuName -label \"Import\" -version $pluginVersion -image $unityImportIconPath -annotation $unityImportLabel -command \"unityImport\" ; \
35
- menuItem -parent $unityMenuName -label \"Export\" -version $pluginVersion -image $unityExportIconPath -annotation $unityExportLabel -command \"unityExport\" ;";
39
+ menuItem -parent $unityMenuName -label $unityImportMenuName -version $pluginVersion -image $unityImportIconPath -annotation $unityImportLabel -command $unityImportCommand ; \
40
+ menuItem -parent $unityMenuName -label $unityExportMenuName -version $pluginVersion -image $unityExportIconPath -annotation $unityExportLabel -command $unityExportCommand ;";
36
41
}
0 commit comments