Skip to content

Commit f625430

Browse files
committed
add UI setup script
adds divider + Unity menu item
1 parent 3acb38b commit f625430

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
global string $kMenuName = "UnityFbxForMaya";
2+
global string $kMenuDivider = "UnityFbxForMayaDivider";
3+
global string $kMenuLabel = "Unity";
4+
global string $kMenuInsertAfter = "exportActiveFileOptions";
5+
6+
global proc setupUnityUI(){
7+
evalDeferred -lowestPriority "buildFileMenu; \
8+
$parentMenu = $gMainFileMenu; \
9+
$pluginVersion = whatsNewVersion(); \
10+
menuItem -parent $parentMenu -insertAfter $kMenuInsertAfter -divider true -longDivider false -version $pluginVersion $kMenuDivider; \
11+
menuItem -parent $parentMenu -insertAfter $kMenuDivider -subMenu true -label $kMenuLabel -tearOff true -version $pluginVersion $kMenuName;";
12+
}
13+
14+
global proc string whatsNewVersion(){
15+
return `about -q -version`;
16+
17+
}

0 commit comments

Comments
 (0)