Page 1 of 1

Change Eyes via script

PostPosted: Mon Jun 24, 2019 3:46 pm
by vostho
Hey, is it possible to create a new EyeProxy-Object with a .mhclo-Path via scripting interface?
My plan is to use G.app.selectedHuman.setEyesProxy() to select my own .mhmat to change the eyes-texture.
I would be very grateful to any other option to change the eyes diffuse texture too :)

Re: Change Eyes via script

PostPosted: Thu Jun 27, 2019 3:06 am
by MTKnife
Why not just make an eye material and select it in the "Materials" tab?

Re: Change Eyes via script

PostPosted: Thu Jun 27, 2019 7:06 am
by joepal
You can't create new items in MH. In order to create a new eye proxy, you should use MakeClothes.

Selecting an existing item can be done with MHAPI, see https://github.com/makehumancommunity/c ... _assets.py. I realize now that there's no convenience method for eyes (like there is for, for example, eyebrows), but it should be easy to simply copy and modify lines 571-573 and change them to instead adress eyes.