On 06/02/2018 at 05:18, xxxxxxxx wrote:
I'm looking for a very specific script...
1. parse through all selection tags in a scene
2. for each tag, if name contains one or more underscore characters ("_"), then truncate the first underscore character and all others after it
rename selection tag named polishedMetal_obj_imported to just simply polishedMetal
I've made a very lame attempt at writing this script, but, alas, I'm not a coder. But I do import a lot of OBJ files and I can't figure out how to make the R19 importer stop appending suffixes to the tag names (related to name collisions i think). So, a script such as this would save me a lot of copy/paste/rename tool repetition.
Thanks for reading...hoping an experienced coder will help me out.