Sunday, July 1, 2012

Renaming Tool

Ahoy! I always wanted a simple renaming script that supported a bunch of features in a single textField. Sooo, I wrote one! dbrNamer supports string replacement, removal, prefixing, suffixing, and integer padding in a convenient and easy to use interface. I threw in namespace removal too, to quickly clean up messy imports.


I'm pretty pleased with how it's functioning. Here is a quick breakdown of how to use the supported features:


Use - to remove a string. ( -joint )
Use + to add a prefix or suffix ( +_GRP or JNT_+ )
Use two strings separated by a space to replace part of a name ( joint bone )
Use the # symbol to add an integer with padding
Use a single string to fully replace a name ( JNT_#### )

Combine multiple methods separated by spaces if you like!
given the selection: shoulder_joint, elbow_joint, wrist_joint
rename string: -_joint R_+ +_JNT
result: R_shoulder_JNT, R_elbow_JNT, R_wrist_JNT

Throw dbrNamer.py into your scripts directory and enter 'import dbrNamer; dbrNamer.win()' in the python command line.

As usual feel free to email me if you have any issues or requests.

Download dbrNamer

No comments:

Post a Comment