@@ -56,10 +56,30 @@ def installMenu():
56
56
install menu into main window
57
57
@ingroup UnityUI
58
58
"""
59
- maya .cmds .menu (kMainWndMenuName , parent = 'MayaWindow' , label = kMainWndMenuLabel , tearOff = True , version = kMayaVersionAdded ) # @UndefinedVariable
60
- maya .cmds .menuItem (parent = kMainWndMenuName , label = commands .importCmd .kShortLabel , command = commands .importCmd .kScriptCommand , version = kMayaVersionAdded ) # @UndefinedVariable
61
- maya .cmds .menuItem (parent = kMainWndMenuName , label = commands .reviewCmd .kShortLabel , command = commands .reviewCmd .kScriptCommand , version = kMayaVersionAdded ) # @UndefinedVariable
62
- maya .cmds .menuItem (parent = kMainWndMenuName , label = commands .publishCmd .kShortLabel , command = commands .publishCmd .kScriptCommand , version = kMayaVersionAdded ) # @UndefinedVariable
59
+ maya .cmds .menu (kMainWndMenuName ,
60
+ parent = 'MayaWindow' ,
61
+ label = kMainWndMenuLabel , tearOff = True ,
62
+ version = kMayaVersionAdded ,
63
+ familyImage = commands .importCmd .familyIconPath )
64
+
65
+ maya .cmds .menuItem (parent = kMainWndMenuName ,
66
+ label = commands .importCmd .kShortLabel ,
67
+ annotation = commands .importCmd .kLabel ,
68
+ command = commands .importCmd .kScriptCommand ,
69
+ image = commands .importCmd .iconPath ,
70
+ version = kMayaVersionAdded )
71
+ maya .cmds .menuItem (parent = kMainWndMenuName ,
72
+ label = commands .reviewCmd .kShortLabel ,
73
+ annotation = commands .reviewCmd .kLabel ,
74
+ command = commands .reviewCmd .kScriptCommand ,
75
+ image = commands .importCmd .iconPath ,
76
+ version = kMayaVersionAdded )
77
+ maya .cmds .menuItem (parent = kMainWndMenuName ,
78
+ label = commands .publishCmd .kShortLabel ,
79
+ annotation = commands .publishCmd .kLabel ,
80
+ command = commands .publishCmd .kScriptCommand ,
81
+ image = commands .importCmd .iconPath ,
82
+ version = kMayaVersionAdded )
63
83
64
84
def uninstallMenu ():
65
85
"""
0 commit comments