Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.62
Category: Object
Python: 3.2
Script name: object_multi_rename.py
Wiki page: http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Object/object_multi_rename
Dependencies: re, fnmatch
Author(s): Maximilian Eham
Status: Closed
Related: 21681 25242
Features:
- renaming multiple objects at once
- renaming multiple bones at once
- wildcard supprt for searching
- adding prefixes / suffixes
- truncating names from start or end
Setup:
1. Copy "object_multi_rename.py" to "blender\2.55\scripts\addons"
2. Start Blender
3. Open the <User Preferences>
4. Go to the <Add-Ons>-Tab
5. Activate the <Object: MultiRename>-Add-On
Manual:
I recommend having the outliner open and setting it to show the selected objects only, otherwise you won't see anything happen.
You can find the new menu in the toolbar in 3d-View. Select objects or bones that you want to rename, click on <Rename objects> and set the parameters in the lower area of the toolbar in 3d-View.
The wildcards you can use in the <Find String>-field are:
* matches everything
? matches a single character
[sequence] matches a single character in the sequence (example: [0-9] matches a single digit, [a-z] matches the whole ABC in lower case)
[!sequence] matches a single character which is NOT in the sequence
One important thing to understand about this script is that it always works on the original object/bone names, so if you messed up a parameter, say you set <trim end> to a high value so all your objects are called untitled.001 etc, then you can simply lower the value and the original names will reappear.