Created
May 18, 2021 01:23
-
-
Save iszotic/e85d3c0cbd36186ea01dccb94a715a68 to your computer and use it in GitHub Desktop.
flip bone vertex groups
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
toflip = [ | |
('.R', '._R'), | |
('.L', '.R'), | |
('._R', '.L') | |
] | |
for pair in toflip: | |
for vg in bpy.context.object.vertex_groups: | |
if pair[0] in vg.name: | |
vg.name = vg.name.replace(*pair) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment