Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
Thanks! I'm still tinkering with it so I expect it to improve with age. grins pro - The next feature will be that 'undo' you asked about earlier. Colm - I'm not certain yet if that's a limitation in the script or just something to live with in PoserPython. I'd also like to figure out how to get the dials to update automatically.
Thanks Bushi despite PPP's PythonScript panel is small, one can use only 10 *py in the panel, I know now we can use Alt+click to change the button and Ctrl+click to edit. And I understand now we don't have to clear all to retrieve the ones we need, just Alt+click for the one we don't need to replace with new one. I just thought if we can make it contain more ( like 20 ) buttons in the little panel, so as to expand it.
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
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.