Functions to control measurement modifiers

MakeHuman python API, python plugins, etc

Moderator: joepal

Re: Functions to control measurement modifiers

Postby rajataggarwal91 » Thu Jun 25, 2015 1:38 pm

Can you describe a little more in detail how you are using command line to interact with Makehuman. I am new to Makehuman and python.
What new objects need to be created to execute the code you have written below?


Deepfreeze wrote:Hi,

I'm using the headless MakeHuman script that can be found online.
In this way, i'm able to control the macro parameters of the body and
return the meshdata of this body.

Now I would like to control the measurement modifiers, so I've started
to try and change the waist of the model. By using:

Code: Select all
Measurerer = (__import__("0_modeling_a_measurement"))

ruler = Measurerer.Ruler()
print 'waist [cm]: ',ruler.getMeasure(human,'measure/measure-waist-decrease|increase','metric')


I can measure the waist perimeter. But now the big questions, which functions should I
use to change the waist perimeter. I've followed the code for slidermodifier, but can't
get a complete understanding on how the mesh coordinates are updated by a different
waist size.

Please show a small example on how I could update the waist size in python code.
rajataggarwal91
 
Posts: 11
Joined: Fri Jun 19, 2015 3:25 am

Previous

Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest