Generating images

MakeHuman python API, python plugins, etc

Moderator: joepal

Generating images

Postby Supreetha » Fri Apr 26, 2019 11:33 am

Hi,
I am trying to generate images of the MakeHuman models using a Python script. First, a database is generated which contains certain values for human body parameters like, height, chest size, waist size, etc. Using this database, I want to generate images whose measurements are mapped to the ones in the database. The images are getting generated, but I am not able to spot the difference in measurements in the images.
Can anyone please help me out in this?
Supreetha
 
Posts: 8
Joined: Fri Apr 26, 2019 11:27 am

Re: Generating images

Postby joepal » Sat Apr 27, 2019 1:04 pm

If you take a look in https://github.com/makehumancommunity/m ... ripting.py, for example lines 571-575, you can see that it runs both applyTargets and redraw. The screen dumping procedure (line 593) simply takes the viewport and saves it to a file. So in order to save a modified file, the viewport needs to be redrawn before dumping the image.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3608
Joined: Wed Jun 04, 2008 11:20 am


Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest