pymel.core.windows.showSelectionInTitle

static windows.showSelectionInTitle(*args, **kwargs)

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.

Derived from mel command maya.cmds.showSelectionInTitle

Example:

import pymel.core as pm

window = pm.window(widthHeight=(400, 100))
pm.paneLayout()
# Result: ui.PaneLayout('window1|paneLayout8') #
pm.scrollField(wordWrap=True, text='The title of this window will reflect the current object selection.')
# Result: ui.ScrollField('window1|paneLayout8|scrollField5') #
pm.showWindow(window)

pm.showSelectionInTitle(window)
pm.sphere()
# Result: [nt.Transform(u'nurbsSphere1'), nt.MakeNurbSphere(u'makeNurbSphere1')] #

Previous topic

pymel.core.windows.shelfTabLayout

Next topic

pymel.core.windows.showWindow

Core

Core Modules

Other Modules

This Page