Your Ad Here

Go to: Synopsis. Return value. Python examples.

Synopsis

showSelectionInTitle( [windowName] )

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

showSelectionInTitle is undoable, queryable, and editable.

This command causes the title of the specified window to be linked to the current file and selection. When selection changes, the window title will change to show the current file name and the name of the last selected object.

Return value


Nothing

Python examples

import maya.cmds as cmds

window = cmds.window(widthHeight= (400, 100))
cmds.paneLayout()
cmds.scrollField(wordWrap=True,text='The title of this window will reflect the current object selection.' )
cmds.showWindow( window )

cmds.showSelectionInTitle( window )
cmds.sphere()

  

Return to Autodesk Index


Your Ad Here