reorderOutliner

Function

Sorts the Outliner so items appear in alphabetical order.

Usage

reorderOutliner;

Advanced Usage

reorderOutliner added to Outliner Display menu

For added convenience, you can add this function as an item in the Outliner's Display menu by overriding the "createOutlinerPanelMenu.mel" script and adding the following lines after the 'showSelectedItem' menuItem.



global proc createOutlinerPanelMenu( string $panel )
{
  // ...

  menuItem  -l "Selected"
    -c ("outlinerEditor -e -sc 1  "+$ed)
    showSelectedItem;
  
  // Add 'reorderOutliner' to Display menu
  if ( `exists reorderOutliner` )
    menuItem -l "Reorder Outliner"
      -c "reorderOutliner()"
      reorderOutliner;

  // ...
}  

Reload H2O MEL Scripts

Tuesday, October 03, 2000