Sat, Feb 15, 5:55 AM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: How works face randomizer ?


bald3 ( ) posted Mon, 26 February 2001 at 4:47 PM · edited Sat, 15 February 2025 at 5:52 AM

I load face randomizer as a script. But no results. What does face randomizer and how ? What should i see if face randomizer works ?


ScottA ( ) posted Mon, 26 February 2001 at 9:33 PM

Did you select the head of the figure before you ran the script? ScottA


bushi ( ) posted Tue, 27 February 2001 at 2:14 AM

Version 1 1. Load a single figure into the work space. 2. Load any extra face MTs you're going to use. 3. Start the script by using File > Load Python Script 4. Click on Go!. The MTs on the head will all be set to a random value (default is from -0.3 to 0.3) Use repeated clicks to create new faces. Inc/Dec adds/subracts 0.1 from all MTs. Reset sets all MTs back to 0. Version 2 All of the above plus: Use Go! to create new faces. When you have one you like click SP1. Use Go! to create more faces. When you have another you like click SP2. Now when you click Meld! the new faces generated will be created by setting random values between the face saved in SP1 and SP2. Meld! won't work till you have loaded faces into SP1 and SP2. As with Go!, you can repeatedly click meld to create new faces. You can always use the Go! button to generate faces outside the SP1/SP2 range then load thoses faces into the either SP1 or SP2 to change the range. The Show buttons are there in case you forget what the SP1/SP2 faces look like. It's not always evident that a new face has been created when you click on Go! since the numbers loaded into the MTs can be pretty small. I've also noticed that default -0.3 to 0.3 range doesn't affect all figures with the same strength. The P4 child figures seem to have fairly subtle changes. The P4 Male/Female changes are stronger and the changes on Vicky can be fairly extreme. I think it has to do with the number on standard MTs that are on the figures. That's pretty much it in a nutshell. BTW if you have the first version, download Version 2. It's in the free stuff area and the new tools make it much more useful. And yes, you DO need the Pro Pack to run any PoserPython script. When you see script think Pro Pack. ;-)


polartech ( ) posted Tue, 27 February 2001 at 2:42 AM

Bushi- it sounds really excellent, thanks. As I await my PPP delivery, did anyone ever post up a series of heads resulting from this script. Like image 1 = result 1; image 2 = result 2.... etc... ?


bushi ( ) posted Tue, 27 February 2001 at 3:13 AM

Polartech - I did a series for the first version but not V2.0. I'll put one togther and post it. V2.0 gives much better results since you can 'tune' the face. One interesting thing to try is to make variations on available characters, such as one of Thorne's little pixies. You'd load the character then save the face MTs using SP1. Next, set the morphs back to 0.0 using the reset button. With the Go! button, try repeated clicks till you hit one that's interesting. Save that one to SP2. Now try the Meld! button. You'll get random variations using the original face and the Go! created face as the limits.


bald3 ( ) posted Tue, 27 February 2001 at 3:52 AM

Thanks a lot, at least, i understand. That's clear now.


polartech ( ) posted Tue, 27 February 2001 at 4:50 AM

Thanks Bushi. Yes, it IS wonderous ;-) - And just imagine what Python stuff will be floating around in, say, a year from now!! Thanks again... !


HandspanStudios ( ) posted Tue, 27 February 2001 at 6:35 AM

Good lord you've automated my job! If there was a union I might even go on strike. ;-)

"Your work is to keep cranking the flywheel that turns the gears that spin the belt in the engine of belief that keeps you and your desk in midair."

Annie Dillard


ScottA ( ) posted Tue, 27 February 2001 at 7:56 AM

Hey Bushi. Thought you you might like to know that if you don't select the head first using version2. Python throws out a rather long and technical looking Whoops! message. Can you add text to that messgae to say something like "Select the head. And try again"? ScottA


bushi ( ) posted Tue, 27 February 2001 at 5:00 PM

polartech - Yes, it's going to be very interesting to see how scripting will evolve over the next year. I'm quite excited about the possibilites. Handspan - Oops! Sorry about that. I guess that falls into the area of un-intended consequences. Please, no picketing. :-) Scott - Hmmm ... I'll certainly look into that one. Thanks for the heads-up. It sounds like I may have left up a line of code to select the head each time a button is pressed. I'll check and add more later. Thanks again.


bushi ( ) posted Tue, 27 February 2001 at 9:42 PM

I took a look at the script and the head is being selected every time a button is pressed. I also tried selecting other actors and it still worked OK. Could you give me a screen shot of the error that's coming up so I can figure out what's going on?


ScottA ( ) posted Tue, 27 February 2001 at 10:11 PM

file_150453.jpg

Here ya go. When I load a figure. The main camera is active by default. If I run your script. This error message pops up. If I select the head first. It runs fine. The strange thing is. Once the script runs successfully once. Then it will always work again. Even if I don't have the head selected. If I shut down Poser. The problem starts over from scratch. From the looks of the error message. It looks like I might need a .dll that TKinter uses. Or there is a driver conflict of some kind with my machine. ScottA


bushi ( ) posted Tue, 27 February 2001 at 10:48 PM

Scott - Yes, this does look like a bigger problem then just the script. It looks to me like part of the initial install didn't work correctly. I think I'd run this by CL tech support since it might also be a bug. It is strange that the script will run OK once the initial run works. You know, I seem to recall that the very first time I ran a script using TkInter I got an error message like this. I haven't had it come up again though.


Privacy Notice

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.