Sat, Jan 25, 4:56 AM 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: Poserscript: debugging issue


gbn ( ) posted Sun, 03 August 2014 at 3:51 PM · edited Thu, 08 August 2024 at 3:28 AM

I'm using a script w/o GUI. In loops w/ huge iteration I experienced this behaviour til PoserPro 2014 inclusive: During first runs of the loop prints or logging.outputs operates in realtime manner, after a while further prints are suspended and come out not before the script ends. In case of long operations I don't know hence whether Poser is running OK or is having a life lock, impractical for debugging. I know this stream-behaviour from other work w/ Python, C, C++ (buffered IO). My solution was the print on stderr-stream.

This implementation makes its worse, even not the first loop prints are visible:

import sys

...
sys.stderr.write(my_log)

The more direct use by stderr doesn't give any output even when I call one debug by Python Shell.

Is there any trick to gain short reaction time from Poser machine by debug messages ?

TIA / Gunnar

 

PS: I read something about IDLE environment. Does it help? Is tutorial solution compatible w/ PP 2014 ?


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.