Skip to content

Commit a3648d1

Browse files
committed
add icons for Maya LT
1 parent 7afc984 commit a3648d1

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed
19.6 KB
Loading
19.4 KB
Loading
1.42 KB
Loading

Assets/Integrations/Autodesk/mayalt/scripts/setupUnityUI.mel

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@ global string $kMenuName = "UnityFbxForMaya";
22
global string $kMenuDivider = "UnityFbxForMayaDivider";
33
global string $kMenuLabel = "Unity";
44
global string $kMenuInsertAfter = "exportActiveFileOptions";
5+
global string $kImportIconPath = "import.png";
6+
global string $kExportIconPath = "export.png";
7+
global string $kUnityIconPath = "unity.png";
58

69
global proc setupUnityUI(){
710
evalDeferred -lowestPriority "buildFileMenu; \
811
$parentMenu = $gMainFileMenu; \
912
$pluginVersion = whatsNewVersion(); \
1013
source \"unityCommands.mel\"; \
1114
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\";";
1518
}
1619

1720
global proc string whatsNewVersion(){

0 commit comments

Comments
 (0)