Go to: Synopsis. Return value. MEL examples.

Synopsis

showSelectionInTitle [string]

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.

Return value

None

MEL examples

string $window = `window -widthHeight 400 100`;
paneLayout;
scrollField -wordWrap true -text ("The title of this window "
    + "will reflect the current object selection.");
showWindow $window;

showSelectionInTitle $window;
sphere;