Forum: Poser Python Scripting


Subject: Converting scripts for PP2012?

lesbentley opened this issue on Mar 19, 2012 · 25 posts


bagginsbill posted Mon, 19 March 2012 at 10:38 AM

The message you got is from an exception being detected and the script is trying to help you understand the problem. By hiding the actual error, it is preventing us from understanding the problem. I hate it when people try to put a nice error message on every possible problem. It means we have no idea what is actually happening.

Certainly the problem is not that you are running something older than Poser 6 SR2, so that is a f***ing stupid thing to say.

Do you want to try to remove the "smart" error message so we can see what is really going wrong?

At the bottom it says:

 

try:
        dg=SpawnCharacterDialog(poser.Scene().CurrentFigure())
        dg.Show()
except FigureError:
        pass
except:
        print "This script requires Poser 6 SR2 or later"

Change it to this: dg=SpawnCharacterDialog(poser.Scene().CurrentFigure()) dg.Show()

(No indentation on that)

We just want the raw code to go ahead and succeed or fail without intervention. So I stripped all the silly "helpful" stuff and just leave the two lines that need to run. If they fail, you'll get a real Python error message - tell me what it says.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)