Kalypso opened this issue on Jun 16, 2009 · 9 posts
Kalypso posted Tue, 16 June 2009 at 5:16 AM Site Admin
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:
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
EnglishBob posted Tue, 16 June 2009 at 5:38 AM
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.
Kalypso posted Tue, 16 June 2009 at 7:56 AM Site Admin
Thank you so much! I had tried both stefan and werner in the search and nothing came up. Hopefully I will be able to get it work again. Thanks again!
markschum posted Tue, 16 June 2009 at 10:20 AM
If you cant get in touch please post the error message if you get one . Just copy and paste it all .
Kalypso posted Tue, 16 June 2009 at 11:26 AM Site Admin
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.
nruddock posted Tue, 16 June 2009 at 2:14 PM
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
Kalypso posted Tue, 16 June 2009 at 11:41 PM Site Admin
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.
Kalypso posted Wed, 17 June 2009 at 1:33 AM Site Admin
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.
nruddock posted Wed, 17 June 2009 at 4:14 AM
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).