Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
As far as this script is concerned, you could select multiple actors by changing the if statement. change: if SingleActor.Name() == 'Head': to: if (SingleActor.Name() == 'Head') or (SingleActor.Name() == 'Chest'): Now all the MTs for the Head and the Chest will be selected. You could make this script much more generalized by using some of TkInter's widgets. There's one called 'CheckButton' that gives a panel with selectable boxes. I haven't tried building one of these with actor names at runtime but I'd think it could be done. Jeff - No, I haven't tried that yet. I've looked at the examples and it looks like it's fairly straight forward. I need to get a bit deeper into the examples before trying it though.
I haven't looked through the PoserPython docs to see if there are any functions related to the setup room so I'm not sure on that point. As to undoing scripts, I'm certain that as the scripts get more complex there will be undo functions built into them. Actually that would be relatively simple. It's just a case of saving the current state of the actors before changing them. An undo would just reload the saved values.
The Random MT py ( for head alone) turns out a good tool to create many convincing facial expression or new looks. It is a very import ant tool now. the reason is simple, normally we have to manually adhust the parameter dials to achieve new looks or expresson, with trial and error, it takes time. But with the random MT py, it is very quick and easy way to get many random sample and part of them are very useful to save as spawn morph or fc2. I found the tweekValue is a key to the ramdom effects. so changing it may result in different combination of MT. Thanks to Bushi who enlighted me for the py.
the reason for asking an undo is becasue when i hit the random mt py, i kept hitting unaware of a mt is very good to save as spawn or f22, but i was too quick to hit next so i failed to keep it and ctrl + z has no effect on this:( btw, anyway to make an incremental MTs, i mean with one py hit, the dials will increase the amount for say 0.001( or any ) so that i can see the increasingly morphing effect. TIA
Yes, I could add an undo (at least 5 or 10 layers deep) and an incremental parameter change. Actually it would be good practice since it will require some TkInter programming to do it. I've also been thinking about adding a symmetry feature. That would be where selected parameter dials would get the same random adjustment. As an example, having the 'blink' parameter be set the same for the right and left eye.
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/ibscript2.py
Here's another small PoserPython script. This one is a bit more interesting. It changes a figure's head MT parameter dial values to random values from 0 to 1. There's also a tweek constant that you can change to produce negative values. As before, I'd like to hear from anyone that tries it on a Mac. BTW don't use this on anything but 'junk' figures since ALL the head MT parameter values will be changed