Forum: Poser Python Scripting


Subject: is there any simple user input function available ??

jenay opened this issue on Jun 17, 2008 · 5 posts


jenay posted Tue, 17 June 2008 at 4:54 AM

I need some help with Python from the gurus here :)
I am just a beginner with Python.
here is a code snippet:

ok = "y"
while ok !="x":
        ok = raw_input("... repeat action ...")
        print("... do something ...")
print ("... quit ...")

I wrote a simple loop that exits when the "x" is entered. It works fine within
my Python console, but PoserPython refuses to accept the input (raw_input) funktion.
now I didn't find any docu about this matter. seems, that the PoserPython console
doesn't accept any user input ??
do I have to use Tk for that purpose and create a dialog along with buttons - or is
there a simpler solution ???
I found somethong like Poser.dialog - but this seems not available under Poser5 ??