Go to: Synopsis. Return value. Python examples.

Synopsis

newPanelItems( string )

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

newPanelItems is undoable, NOT queryable, and NOT editable.

This action builds menu items to create new panels. The first argument defines the name of the menu to which the items are to be added.

Return value

booleanTrue if successful, otherwise false.

Python examples

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 )