File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed
Assets/Integrations/Autodesk/mayalt Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,19 @@ global string $kMenuName = "UnityFbxForMaya";
2
2
global string $kMenuDivider = "UnityFbxForMayaDivider";
3
3
global string $kMenuLabel = "Unity";
4
4
global string $kMenuInsertAfter = "exportActiveFileOptions";
5
+ global string $kImportIconPath = "import.png";
6
+ global string $kExportIconPath = "export.png";
7
+ global string $kUnityIconPath = "unity.png";
5
8
6
9
global proc setupUnityUI(){
7
10
evalDeferred -lowestPriority "buildFileMenu; \
8
11
$parentMenu = $gMainFileMenu; \
9
12
$pluginVersion = whatsNewVersion(); \
10
13
source \"unityCommands.mel\"; \
11
14
menuItem -parent $parentMenu -insertAfter $kMenuInsertAfter -divider true -longDivider false -version $pluginVersion $kMenuDivider; \
12
- menuItem -parent $parentMenu -insertAfter $kMenuDivider -subMenu true -label $kMenuLabel -tearOff true -version $pluginVersion $kMenuName; \
13
- menuItem -parent $kMenuName -label \"Import\" -version $pluginVersion -command \"unityImport\"; \
14
- menuItem -parent $kMenuName -label \"Export\" -version $pluginVersion -command \"unityExport\";";
15
+ menuItem -parent $parentMenu -insertAfter $kMenuDivider -subMenu true -label $kMenuLabel -tearOff true -ltVersion $pluginVersion -image $kUnityIconPath $kMenuName; \
16
+ menuItem -parent $kMenuName -label \"Import\" -ltVersion $pluginVersion -image $kImportIconPath -command \"unityImport\"; \
17
+ menuItem -parent $kMenuName -label \"Export\" -ltVersion $pluginVersion -image $kExportIconPath -command \"unityExport\";";
15
18
}
16
19
17
20
global proc string whatsNewVersion(){
You can’t perform that action at this time.
0 commit comments