custom vertex groups with weight by scripting

MakeHuman python API, python plugins, etc

Moderator: joepal

custom vertex groups with weight by scripting

Postby rampagedog » Thu Dec 21, 2017 11:00 pm

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.
rampagedog
 
Posts: 2
Joined: Thu Dec 21, 2017 10:46 pm

Re: custom vertex groups with weight by scripting

Postby make3 » Tue Dec 18, 2018 1:05 am

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
make3
 
Posts: 45
Joined: Thu Jan 11, 2018 11:32 am

Re: custom vertex groups with weight by scripting

Postby make3 » Tue Dec 18, 2018 7:40 am

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
make3
 
Posts: 45
Joined: Thu Jan 11, 2018 11:32 am

Re: custom vertex groups with weight by scripting

Postby joepal » Tue Dec 18, 2018 8:20 am

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.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3509
Joined: Wed Jun 04, 2008 11:20 am

Re: custom vertex groups with weight by scripting

Postby make3 » Tue Dec 18, 2018 10:36 am

Pitty Thomas Larsson is not here anymore. Also, i see somewhere that Manuel stops his Blender project. Sad
make3
 
Posts: 45
Joined: Thu Jan 11, 2018 11:32 am


Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron