Copy and Mirror Weight vertex

here is a new version.

in that version, as Safetyman mentioned (and in fact was necessary) the script now creates mirrored groups if they were not present, but only if they are used on the original side.

For example let say that you have Group.L but no Group.R and that vertices on side L use Group.L when you mirror the weight, the script will create Group.R. But if no vertices is associating with Group.L it won’t create it.

Also to be able to save time, I added a feature, there is now a function in the Edit mode tool panel. In Edit Mode, you can select the vertices that you want to mirror. You need to select the vertices on the good side, the original side, and they will overwrite their mirrored vertices, even if these one are not selected. (in your selection it’s not a problem if you select some on the center line or the mirrored side, it won’t take them into account).

Hope it make thanks and I hope you find it useful.

Mathias.

there is in total 4 functions in this script,2 in object mode
2 in edit mode mesh

the 2 in object mode,copy mirror vertex

[INDENT=2]copy all the vertex weight of one side from the object, and past it on the other side, mirroring the name when possible
it is important to have the center geometry on EXACTLY on the center, on the axes on which you are going to mirror!
you also need to check your local axes, since they are the one that matter for this script.
it could take some time to run, even minutes[/INDENT]
clean vertex

[INDENT=2]remove every group that are at 0 for each vertex (not in the vertexGroup for the object)
it could take some time to run, even minutes[/INDENT]

the 2 in edit mode,copy mirror vertex

[INDENT=2]copy SELECTED vertex weight of one side from the object, and past it on the other side, mirroring the name when possible
it is important to have the center geometry on EXACTLY on the center, on the axes on which you are going to mirror!
you also need to check your local axes, since they are the one that matter for this script.
it could take some time to run, even minutes but less than the all object[/INDENT]
copy vertex weight

[INDENT=2]copy the weight of the first vertex selected and past the exact same weight to the other (no mirror on this one)
make sure that your first selection is only ONE vertex, and then you can select others even using a cloud selection.[/INDENT]

Attachments

copy_mirror_weight_vertex.zip (4.56 KB)