Go to: Synopsis. Return value. Python examples.
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.boolean | True if successful, otherwise false. |
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 )