Normally I would add this to the bugtracker, but it is mhx2, so I choose this way ...
After creating the wonderful hairdo made by o4saken with makeclothes I was able to load it into MakeHuman. I also was able to export it in mhx2 format. But I was not able to load it into Blender. This will happen:
I just figured out that the system stopped while creating vertex-groups. The internal part of the mhx2-file looks like this (shortened):
- Code: Select all
{
"license" : {
},
"name" : "Evi:O4saken_curly01",
"uuid" : "1e389f96-1cc8-46df-a523-8f6d856d79b7",
"offset" : [0,8.1831,0],
"scale" : 1,
"issubdivided" : false,
"material" : "Evi:O4saken_curly01:04saken_curly01",
"mesh" : {
"vertices" : ...
"faces" : ...
"uv_coordinates" : ...
"uv_faces" : ...
"weights" : {
"spine03" : ...
...
"levator05.R" : [[68864,0.0031742],[68865,0.014959], ... ,
>>>!!!!
[1.195e+05,0.00048838],[1.1956e+05,0.00015145],[1.1958e+05,0.00066446],[1.1958e+05,0.0039],[1.1958e+05,0.0018054],[1.2022e+05,0.018331],
[1.2022e+05,0.025266],[1.2022e+05,0.018534],[1.2022e+05,0.017707],[1.203e+05,0.00039211],[1.2053e+05,0.0011459],[1.206e+05,0.007656],[1.2060e+05,0.0082733],[1.2114e+05,0.0041977]]
>>>!!!!
}
},
"seed_mesh" : {
"vertices" : ...
"levator05.R" :
>>>!!!!
same problem
>>>!!!!
}
},
"human" : false,
"proxy" : {
"license" : {
"author" : "04saken",
"license" : "CC BY 4.0",
"homepage" : "http://www.makehuman.org/"
},
"name" : "O4saken_curly01",
"type" : "Hair",
"uuid" : "ba9ec978-a9b3-4859-a8a7-1729c2dcf2dc",
"basemesh" : "hm08",
"tags" : ["curly","female"],
"fitting" :
"delete_verts" :
"vertex_bone_weights" : null
}
},
Vertex number bigger than 100000 will be presented in float style. The reason is the json-printer. I created a work around:
In 9_export_mhx2/save_json.py
Line 59 and 105
change
return "%.5g" % data
to
return "%.6g" % data
Of course it now only works for numbers lower than 1 million. I guess the first value should be an integer in this context but was saved as "something else" (numpy?).
Nevertheless Blender expects integers and %.5g will make the numbers 100000 - 100009 to 1e5. I hope you can fix the error with my "findings". I'm still not good enough to do that myself