Go to: Synopsis. Return value. Python examples.
newPanelItems(
menuName
)
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
newPanelItems is undoable, queryable, and editable.
This action builds menu items to create new panels. You must provide the name of the menu to which the items are to be added.import maya.cmds as cmds window = cmds.window( menuBar=True ) menu = cmds.menu( label='Panels' ) cmds.paneLayout() cmds.text( label='' ) cmds.showWindow( window ) cmds.newPanelItems( menu )