Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)
I can't help with the script, since I'm not a Python wizard nor do I have Poser 7. However Stefan is known as stewer on Renderosity - his home page is here, and he also has a website here.
This is the message I get
C:Program Filese frontierPoser 7RuntimePythonlibwhrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module
DeprecationWarning)
Upon trying it again, however, the morphs do show up now on the left pane and are selectable whereas before I used to get a blank. I'll try a few more figures, maybe it was Sydney G2 that was the problem after. Although I distinctly remember not getting that message before.
Quote - This is the message I get
C:Program Filese frontierPoser 7RuntimePythonlibwhrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the random module
DeprecationWarning)Upon trying it again, however, the morphs do show up now on the left pane and are selectable whereas before I used to get a blank. I'll try a few more figures, maybe it was Sydney G2 that was the problem after. Although I distinctly remember not getting that message before.
That message is only a warning, it doesn't affect the working of the script.
If you want the message to go away, all you need to do is change whrandom to random
Thanks nruddock
When i first got that message and didn't see any morphs in the pane I thought it was broken. I just have to be careful to choose the body part with morphs before running the script and then everything's fine. Choosing another part while the scrip is running has no effect so I have to turn it off, choose a part and turn it on again.
Update:
I did edit 3 instances of 'whrandom' to 'random' and the message disappeared, the python window loaded with the morphs shown which I selected and randomized but nothing happened and I got this error:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:Program Filese frontierPoser 7RuntimePythonliblib-tkTkinter.py", line 1345, in call
return self.func(*args)
File "C:Program Filese frontierPoser 7RuntimePythonposerScriptsDownloadedRandomizer.py", line 119, in handleGo
self.Action()
File "C:Program Filese frontierPoser 7RuntimePythonposerScriptsDownloadedRandomizer.py", line 106, in Action
OneParm.SetValue(g.random()Multiplier-0.5Multiplier)
AttributeError: 'float' object has no attribute 'random'
So I think I'll go back to the original unedited version because the randomize script at least works in that and I just have to turn off that first message.
Any insight as to what may be causing it would be appreciated. The thing is, I don't have a readme and nowhere in the script itself does it have anything regarding redistribution so I can't even send it to someone who understands python - it could just be a quick and easy fix.
Quote - The thing is, I don't have a readme and nowhere in the script itself does it have anything regarding redistribution so I can't even send it to someone who understands python - it could just be a quick and easy fix.
I almost certainly have a copy, but given how old it is, it will take time to find (I'd just download another copy, but it's disappeared the FreeStuff and I don't see it on stewer's site either).
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.
I have had this python script for years and it has always worked with every version of poser I used it.
Here's an excerpt from the top as I don't have the original zip or any readme. Maybe someone else has it as well and will realize which script I am talking about. The file name itself is Randomizer.py
And this is the info included within the file:
MorphRandomizer
Dec 15,2003
Copyright (c) 2003, Stefan Werner
heavily based on the Emphasizer script which is:
Copyright (c) 2003, David G. Drumright [ockham]
Unfortunately there is no contact information for Mr Stefan Werner so if anyone does have that I would appreciate it immensely.
Ok then, on to my problem :)
As I said it worked fine with Poser 7 SR 2.1 and even better with Poser 6 but ever since I got my new quad core I decided to take advantage of Poser's multithreading but found it very unstable under SR 2.1 - I would get crashes to desktop for no apparent reason. When I was on my old Pentium 4 SR 2.1 worked perfectly for me so I never saw the need to update.
Now, however, that I updated to SR 3 the Randomizer script no longer works. I was wondering if it's a simple fix like the abbreviations I read about for FaceOff's script. I checked but the script uses 'column' and not 'col' so that can't be it.
If anyone is aware of the script or can point me in the right direction (Mr Werner's that is) I would really appreciate it as this script was almost part of all my projects since it is so easy to use and works well with props and hair and not just figures.
Thank you in advance for you help,
K