Your Ad Here

Go to: Synopsis. Return value. Python examples.

Synopsis

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.

Return value


True 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 )

  

Return to Autodesk Index


Your Ad Here