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.