I've been learning a bit about scripting Blender and I'm considering writing something that will allow me to both create materials that use Blender's Glass and/or Principled shaders, and have objects with multiple materials.
Because there is a ton of documentation and tutorials on scripting Blender, and very little for MakeHuman, I'm thinking that I'll try to stick to changing the text files MakeHuman produces rather than try to make modifications to MakeHuman and making things work within MakeHuman.
The simplest approach I can think of is to create an additional file that just contains the list of faces, by index, that it applies to and an mhx2 format material description, and then modify the mhx2 importer to look for the additional file when importing a .mhx2 file. I could probably use the uuid of objects to specify which objects the additional materials apply to.
It seems like this would be pretty straight-forward to implement, can anyone think of any reason that it wouldn't work, or know of another simple approach that would be preferable, or any existing code that already handles multiple materials? Does anyone have any idea how hard it would be to properly implement multiple materials in MakeHuman? I am assuming that someone would have already done so if it weren't difficult.
With respect to glass materials (i.e. transparent materials like glass rather than invisible materials as implemented in Blender's Transparent shader), I am thinking that I can just add a property in the mhx2 material description to indicate the Glass shader should be used. Has anyone looked at adding Glass materials to MakeHuman? Again, I have to suspect that it's difficult or someone would have done it by now.
Any (constructive) thoughts at all are welcome.