Hi Scott, try this one:
script: /* Search and replace text in object names */ var search_text = 'CAMERA_PROJECT_FINAL_'; var replace_text = ''; var objects = moi.geometryDatabase.getObjects(); for ( var i = 0; i < objects.length; ++i ) { var obj = objects.item(i); if ( obj.name != '' ) { obj.name = obj.name.replace( search_text, replace_text ); } }
Set up a shortcut key and paste the above in for the command part, then when you trigger it, it will go through all objects (not just the selection) and replace the specified text inside of object names.
- Michael
|