Thu, Nov 28, 2:17 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 Sep 18 2:50 am)

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: P6 bug? Redirected Confirmation Dialogs


tromnek ( ) posted Sat, 19 November 2005 at 12:54 PM · edited Sun, 24 November 2024 at 8:43 PM

file_305801.txt

I noticed that in P6 (original release, SR1 and SR2), that while a python script is running, certain Poser confirmation dialogs are not presented to the user. Instead they seem to be redirected to the python console window and return an 'OK' automatically.

For instance, if you lower the ending frame in the animation window, Poser will present a confirmation dialog asking:
"Are you sure you want to delete some of your frames?"
And you can select 'Cancel' or 'OK'.

Attached is a simple python script that does (almost) nothing. Try the above test, then run this script and try again. Then close the script and try again.

Any thoughts or ideas?


Cage ( ) posted Tue, 22 November 2005 at 11:30 PM

If I understand properly, I think I have seen this effect with P5 SR4, as well. I have some scripts which set up characters by loading figures and components and assembling them in Poser. Simple stuff, but some of them had problems. Files with certain names (Numerical names and names which closely resembled a folder name in a file path found elsewhere in the same script seemed to be the problems) simply would not open with Python. Python would apparently try to find them, then give up and move on. A script which encountered this problem, once it finished running, would print "The file was not found. Do you want to continue looking for files?" in the console window - twice. It seems to me that it must have been answering its own question and doing pretty much what you've outlined above. Or is that a separate issue?

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.


tromnek ( ) posted Tue, 22 November 2005 at 11:55 PM

Yup. That sounds like those confirmations were redirected to the console window.
I wonder if Poser hooks the Standard Error to those confirmation dialogs. Then when python starts up it gets redirected to the python console.

I wish I knew all the confirmation boxes that this can occur with. Deleting frames is a bad confirmation to miss. Something like 'Delete all files?' would be a real bummer.

I never noticed this with P5, but I'm not sure what service release I was up to.

thanks


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.