Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This script allows you to quickly rename a bunch of objects in the maya outliner.
It also allows for search and replacing and suffix/prefix addition.
You can also make use of the Auto-Suffix function, which adds a suffix depending on the nodetype of the object. (e.g. a joint gets a _JNT suffix (can be changed to anything you like))
1.Place the renameTool folder in the Documents Maya scripts folder located here:
2. Start Maya, copy or drag-and-drop the renameToolUI.py file into the Script editor (Windows > General Editors > Script Editor) and make sure that the tab you are copying it into is set to "Python".
3. Select all code (ctrl a) and middle mouse drag it into a shelf of your choice to create a shelf button or hit alt+enter to execute the code once.
4. You can use your own short name for nodetypes by altering the renameToolTable.txt file. To find out more nodetype names you can execute this script in the script editor(python tab) (you have to have the wanted object selected):
import pymel.core as pm selection = pm.selected() print(selection.nodeType())
The nodetype will be the last line in the console after executing the code.