Weight estimation plugin now available for 1.1

MakeHuman python API, python plugins, etc

Moderator: joepal

Weight estimation plugin now available for 1.1

Postby jujube » Sun Oct 15, 2017 7:17 pm

I think back in 2015, I found a thread where someone posted code for a weight estimation plugin; I got it to work again and posted a reply, but no one noticed.

Well just now I decided to fix and finish it. It automatically finds surface area + weight + BMI of the character. Originally, since the existing surface area calculation didn't work, I used a workaround by having a textbox to manually enter surface area (obtained via blender, with its 3d print tools addon). I opened it up again today and found that the problem was that it didn't recognize the function from mesh_operations.py. I didn't/don't know how to import it, so I just copied all the functions from mesh_operations.py into my file. (If anyone knows how to fix that, feel free to do so. )

Tested in makehuman 1.1.0.

edit: also, it gives the wrong results if you check "hide faces under clothes".
Attachments
7_weight_estimation.py
(9.88 KiB) Downloaded 326 times
jujube
 
Posts: 404
Joined: Fri Aug 14, 2015 10:46 pm

Re: Weight estimation plugin now available for 1.1

Postby jujube » Sat Oct 28, 2017 2:26 am

Edited the topic title to make it clear that this is working code people can use, not something I need help with.
jujube
 
Posts: 404
Joined: Fri Aug 14, 2015 10:46 pm

Re: Weight estimation plugin now available for 1.1

Postby grinsegold » Thu Dec 21, 2017 12:50 pm

Sounds great, but what's it good for? Do you have a screenshot? I can't just test it because ... it's complicated.
grinsegold
 
Posts: 295
Joined: Mon Jun 15, 2015 1:34 pm

Re: Weight estimation plugin now available for 1.1

Postby MargaretToigo » Thu Dec 21, 2017 4:27 pm

It's kinda cool. I'm not sure of its practical use, but it did force me to remember metric to imperial conversions. In America, we still only use the metric system in medicine and engineering. We were supposed to convert everything to it way back in the 1970s -- I remember learning about it in elementary school at the time -- but most of the older folks were just too attached to the old way, so it never caught on.

I played with it a bit using default, heavyset and thin females.
Here are some screen shots of the results...

Screen Shot 2017-12-21 at 11.09.15 AM.png


Screen Shot 2017-12-21 at 11.08.31 AM.png


Screen Shot 2017-12-21 at 11.07.59 AM.png
MargaretToigo
 
Posts: 175
Joined: Thu Feb 16, 2017 6:46 pm
Location: Tampa Bay Florida, USA

Re: Weight estimation plugin now available for 1.1

Postby flockyfloc » Mon Apr 15, 2019 4:07 pm

Hello

how to integrate this attachment to the software?

Thank you.

Have a good day.

Florian
flockyfloc
 
Posts: 5
Joined: Mon Apr 15, 2019 3:18 pm

Re: Weight estimation plugin now available for 1.1

Postby RobBaer » Tue Apr 16, 2019 7:34 am

Haven't tried it, but basically you should copy the plugin to the plugins folder and restart MH.
User avatar
RobBaer
 
Posts: 907
Joined: Sat Jul 13, 2013 3:30 pm
Location: Kirksville, MO USA

Re: Weight estimation plugin now available for 1.1

Postby Aranuvir » Tue Apr 16, 2019 10:04 am

Weight estimation is now integrated in the alpha and can be activated under settings. The hide face problem was fixed, too.
Aranuvir
 
Posts: 1048
Joined: Sun Oct 12, 2014 2:12 pm


Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest