Sun, Feb 9, 10:58 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: Poser Python and error mesage


Kalypso ( ) posted Sat, 16 December 2006 at 8:04 AM · edited Sun, 09 February 2025 at 7:55 AM
Site Admin

When trying to run a Randomizer script I have I get this message:

C:Program Filese frontierPoser 7RuntimePythonlibwhrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module
  DeprecationWarning)

After doing a search I found this thread:  http://www.renderosity.com/mod/forumpro/showthread.php?thread_id=2676377
Face_off says "To get rid of the warning, simply edit the RealskinShader.py file, and change "whrandom" to "random". "  but when I try it on  this script (not the realskin one) it doesn't run at all.   
Can anybody tell me if there is a quick way I can edit it?  I don't remember where I got it from nor does it contain any information on the author in the script or zip file. 

If some python guru had the time to take a look at it I'd really appreciate it.


nruddock ( ) posted Sat, 16 December 2006 at 3:15 PM

You can safely ignore the original deprecation message, as it only a warning.

Are you getting an error mesage when you make the "whrandom" to "random" change ?
Any clues in the comments in the script as to who wrote it or where you got it from ?


Kalypso ( ) posted Sat, 16 December 2006 at 3:37 PM
Site Admin

No, I'm afraid there are no clues at all in the script :(  I've been trying to trace it's maker for quite some time without any luck.  It's called Randomizer.py and I must have first downloaded it in December or January 2003/2004 as it's on my January 2004 Backup disc.

The problem is that I can't ignore it as the script crashes Poser 7 when I run it although it runs fine in P6.   I guess I'll keep P6 installed for certain scripts like that.


nruddock ( ) posted Sat, 16 December 2006 at 4:00 PM

Does the script have a GUI ?
Is there any indication that the script is redistributable ?
(I probably have it somewhere, but it'll take time to find)


Kalypso ( ) posted Sat, 16 December 2006 at 7:39 PM
Site Admin

Oops!  Do I feel foolish, I've been looking at the wrong script!  This one's by Stefan Werner.  Here's the info I have:

MorphRandomizer

Dec 15,2003

Copyright (c) 2003, Stefan Werner

heavily based on the Emphasizer script which is:

Copyright (c) 2003, David G. Drumright [ockham]

I can locate ockham through Renderosity but does anyone have a clue what Stefan Werner's name here is?


nruddock ( ) posted Sun, 17 December 2006 at 5:49 AM

Quote - I can locate ockham through Renderosity but does anyone have a clue what Stefan Werner's name here is?

It's stewer.


Kalypso ( ) posted Sun, 17 December 2006 at 7:44 AM
Site Admin

Thank you!  I'm familiar with stewer but it never registered that he was Stefan Werner :D


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.