Home Technical Talk

Rename sequence

CreativeSheep
polycounter lvl 8
Offline / Send Message
CreativeSheep polycounter lvl 8
How can I rename in the Maya outliner a joint item, not limited to a joint item with F2; F2 renames the selected item, move down, rename the next item, without using F2 etc ?  

Replies

  • Syazel
    Offline / Send Message
    Syazel polycounter lvl 8
    Try this MEL script, just select all your items, execute the script, rename and jump to the next item using the tab key:
    1. string $RNM_WIN = `window -t "Rename"`;
      columnLayout -adj true -w 256;
      string $sel[] = `ls -sl`;
      for($each in $sel){
          nameField -o $each;
      }
      button -label "Close" -c "deleteUI -window $RNM_WIN";
      showWindow $RNM_WIN;

    Alternatively you can use in the Modify menu the "Search and Replace Names" and "Prefix Hierarchy Names" tools.

  • CreativeSheep
    Offline / Send Message
    CreativeSheep polycounter lvl 8
    Perfect. :smile: thanks !
Sign In or Register to comment.