1
$\begingroup$

So I've been working on porting several meshes from an older project into a new one, I however added capitalisation on a lot of vertex groups that I didn't have to. So now its _R instead of _r for example. Is there a way I could remove the capitalisation so its all lower case?

$\endgroup$
2
$\begingroup$

It just so happens that I have a snippet of python that does exactly that:

import bpy
from bpy import context as C
import re

for vg in C.active_object.vertex_groups:
    new_name = vg.name.lower()
    print(vg.name, '->', new_name)
    if new_name != vg.name:
        vg.name = new_name
    
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.