Forum: Poser Python Scripting


Subject: FaceRandomizer

bushi opened this issue on Feb 07, 2001 ยท 12 posts


bushi posted Wed, 07 February 2001 at 4:55 PM

Attached Link: http://bushi3d.com/PythonScripts/FaceRandomizer2.py

I took the face randomizer script and wrapped some TkInter code around. You can now randomize the figure's face multiple times without having to restart the script. Not the best example of structured programming since there is a lot of code re-use but a reasonable example of using TkInter with PoserPython. The buttons: Go! - Randomize the figure's face MTs Increment - Add 0.05 to all the face MT values. Try clicking this one several times. Decrement - Sub 0.05 from all the face MT values. Reset - Sets all the face MTs back to 0.0 Quit - kills the pop-up window. I've also added a feature that copys the Left Blink value to the Right Blink. This gives a better result on the face overall.