Page 1 of 1

Generating images

PostPosted: Fri Apr 26, 2019 11:33 am
by Supreetha
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?

Re: Generating images

PostPosted: Sat Apr 27, 2019 1:04 pm
by joepal
If you take a look in ..., 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.