# If state is set top True then override Maya's dag menu Menu_cmd = nu(maya_menu, query=True, postMenuCommand=True) or # We now get the menu's post command which is a command used for # First loop on Maya menus as Maya's dag menu is a menu State (bool): Whether or not to override Maya's dag menu with mGear's When turned on this will interact with dag nodes that This function is responsible for turning ON or OFF mgear's right click """Set on or off the mgear dag menu override Mc.menuItem(label='Submit a Bug or Request', command=(_showHelpCommand(WEBSITE_URL '/about/'))) Mc.menuItem(label='Python Command Documentation', command=(_showHelpCommand(TOOL_URL '#\[\[' self.name '\ Python\ Documentation\]\]'))) Mc.menuItem(label='Documentation', command=(_showHelpCommand(TOOL_URL self.name '/'))) Mc.menuItem(label='About', command=self.about) Tool.createMenuItem(parent=self.mainMenus, labelPrefix=MENU_ITEM_PREFIX ' ', italicized=True)Ĭommand='import ml_utilities ml_utilities.createShelfButton("import ' module ' ' module '.ui()", name="' self.name '", description="Open the UI for ' self.name '."' argString ')')Ĭommand=(_showHelpCommand(ICON_URL self.name '.png')))Ĭommand=(_showHelpCommand(WEBSITE_URL '/tools/'))) Pmc = mc.menu(self.mainMenus, query=True, postMenuCommand=True)ĮachLabel = mc.menuItem(each, query=True, label=True) #if this menu hasn't been built yet, run the post menu command to build it MenuItemArray = mc.menu(self.mainMenus, query=True, itemArray=True) You may have to select a menu option or click a button.FormatLabel = menuLabel.replace(' ','').lower()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |