Selecting a local pose and some clothes via python

MakeHuman python API, python plugins, etc

Moderator: joepal

Selecting a local pose and some clothes via python

Postby mlang » Tue May 23, 2017 3:01 pm

Hello there,

I am pretty new to MakeHuman and also new to this community, so I am sorry if this issue has been asked already many times and I didn't find it.

So... I want to generate various .obj-files in MakeHuman with different age, gender, weight, poses and clothes. So e. g. I want a script that generates a female and a male character, generates models with 3 different poses and clothes each and then exports the .obj-files.

Age, gender and weight is already working well, but I don't know how to set existing poses or clothes.

Code: Select all
MHScript.updateModelingParameter("macrodetails/Gender", float(gender_i) / float(gender_iterations))
         if gender_i / gender_iterations < 0.5:
            # apply female clothing
            pass
         else:
            # apply male clothing
            pass
         filename = MHScript.incrementingFilename('model')
         MHScript.saveObj( filename,'makehumanmodels/script-generated')
 


So is it even possible to make something like
Code: Select all
MHScript.clothes.add('local_file')
?
mlang
 
Posts: 4
Joined: Tue May 23, 2017 2:51 pm

Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest