Skip to content

Instantly share code, notes, and snippets.

View nabarun1011's full-sized avatar

Nabarun nabarun1011

View GitHub Profile
@nabarun1011
nabarun1011 / CleanVertexGroups.py
Last active February 27, 2021 10:21
Blender Script deletes vertex groups not needed by armature
import bpy
#Setting target is optional and you can instead select the mesh or rig manually to run the script fine
#Target name can be name of a mesh or an armature type only
#Change "TargetName" to the object of your target
target="Targetname"
#Set vertex groups which you don't to delete beside armature bone weight groups
exceptionVertexGroups=["Group"]