Mon, Feb 3, 4:47 PM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Dec 02 3:16 pm)

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: Morph Randomizer - getting it to work with Poser 7 S.R. 3


Kalypso ( ) posted Tue, 16 June 2009 at 5:16 AM · edited Tue, 21 January 2025 at 11:30 PM
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:

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


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 · edited Tue, 16 June 2009 at 10:21 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

Actually it's not working even with the original version.   If there are a lot of morphs and i have to scroll to select the ones I want it crashes with this message.   This didn't use to happen with Poser 6 but I just wanted to avoid having to re-install that version too and switching back and forth.

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).


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.