Page 1 of 1

custom vertex groups with weight by scripting

PostPosted: Thu Dec 21, 2017 11:00 pm
by rampagedog
Hello,
I am new to Blender scripting and MH.
I am writing the script to create some custom vertex groups with weight painting on a human model in Blender.
I read the MXH2 import plug-in for Blender.

I am confused. What is the JSON file in vertexgroups? It seems like the vertex index and weight.
I modified body, tights, skirt a little bit. I found the modification on body JSON change the weight painting on body but do nothing to the clothes, while the tights JSON can change weight painting to the clothes only. The skirt JSON seems do nothing.
How the JSON file works? If they are vertex index and weight, how to generate these data?

As I import different rigs, I may have different vertex groups. I am trying to create custom vertex groups. How to make a vertex group basing on the bone or joint but not binding on them?
I think I would use the JSON for custom vertex group, but nothing is showed up after I add some vertex group there.

Re: custom vertex groups with weight by scripting

PostPosted: Tue Dec 18, 2018 1:05 am
by make3
in Blender you can add bones with their vertex groups with a script. But the easiest way is to create a new rig/armature for makehuman

Im currently looking for some docs to figure how to make it :( . I made one already , but it was just renaming bones of the default rig in the file.

http://www.makehumancommunity.org/rigs.html

Re: custom vertex groups with weight by scripting

PostPosted: Tue Dec 18, 2018 7:40 am
by make3
to reply to your question more precisely ; look at this blender plugin

https://github.com/makehumancommunity/m ... ing_mhskel

download as .zip or make a .zip and install the plugin in blender. I didnt tested it yet

Re: custom vertex groups with weight by scripting

PostPosted: Tue Dec 18, 2018 8:20 am
by joepal
Using the makehuman-utils is not for the faint of heart. The little documentation available is only in source code comments, and even if you manage to produce something with it, you will have to manually edit the results with a text editor to add required stuff it misses.

Re: custom vertex groups with weight by scripting

PostPosted: Tue Dec 18, 2018 10:36 am
by make3
Pitty Thomas Larsson is not here anymore. Also, i see somewhere that Manuel stops his Blender project. Sad