Go to: Synopsis. Return value. Python examples.
showSelectionInTitle(
[string]
)
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
showSelectionInTitle is undoable, NOT queryable, and NOT editable.
This command causes the title of the window specified as an argument 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.None
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()