I wrote a script for blender 2.5.3 wich allows batch renaming of objects, much like comet_rename script for maya.
I find 2.5 python API well exposed, yet I incurred in some limits. I don’t know if it’s me, or insufficient documentation, but I could not have an input field in panels if not by layout.prop() function, wich only accepts blender objects and not operators or any custom object. Or buttons, I had to create an operator for any button and use the layout.operator() function. Is there a good way to have input fields or “do it” buttons in custom panels?
Well, I’ll try to fix the gui for newest build asap. About the error you get from console, pad should be an int, so pad=0, without fences. Suffix argument is suff, with double F. And mainly, list should be the name of a list inside the bpy structure, containg the objects you want to rename (in blender id format).
I will try ‘tomorrow’ … (Opa has to look after his granddaughter today )
She is sleeping
The menu version works (to some degree ) … but closing crashes blender?!
From the console using your example lines nothing happens but an error message
about some NoneType … an error wich occurs if one tries to use a script not as addon but directly
This is reason of ‘complaints’ by other authors other script too!