Skip to content

GulagEnabler' s Avto-WeightLODs.py script

Made by GulagEnabler🍉

Functions

  • Simplifies Weight Transfer
  • Deletes empty Vertex Groups
  • Auto generates LODs
  • Adds Hand-Morphs

Download

Install

Install into Blender:

At the bottom should show:

Enable the addon:

Press N and click on Tool to see the addon window:

Weight Transfer

Select source mesh (with LMB) - from where to transfer weights

Select destination (target) mesh (with ctrl+LMB) - where to transfer the weights

Press "Weight Paint":

Select (LMB) only the target mesh.

This DataTransfer window should appear for the target mesh:

If it does not appear, delete all Vertex Groups from the target mesh and repeat the previous step (click on Weight Paint):

Press on Generate Data Layers:

Apply the modifier:

(For target mesh) check if Vertex Groups are created:

and are they weight painted:

Delete non-active groups, that do not impact the mesh (all blue):

Demo

Delete Empty Vertex Groups

Press on "Delete Empty Vertex Groups" to remove empty groups.

LODs

Select your mesh. Make sure it has correct name (which you will not be able to change in the BL Editor)

Select Object Mode

Newly generated LOD starts from 0.8 Decimate Ratio, then 0.4, 0.2, 0.1, 0.05 ...

Set how many LODs to generate and press the "Generate LODs" button:

Demo

Hand Morphs

Prerequisites: Need rigged hand model :handMRef_Rigged . Need your new hand, Your mesh must be weight painted already.

  1. Import the Rigged hand and Your weighted mesh, duplicate your weight painted mesh, , remove the armature and any vertex groups manually,select imported handMRef_Rigged and your duplicated mesh, and Press the weight paint button, select duplicated mesh, generate data layers and apply modifier.
  2. You must cycle through the animation frames to see if the weight paint looks okay, if not then fix it , once it looks good to you then can hide the imported handMRef_Rigged
  3. With duplicated model selected Click button: Generate Morph Targets , it generates 25 morphs
  4. Select all 25 morphs, and your original weight painted mesh (26 items selected in total)
  5. Click button: Assign Morph Targets, Done.

Youtube guide: