Wed, Jan 8, 5:34 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: Dumb question-import lib file locations P8-PoserPro2010


grichter ( ) posted Sat, 20 February 2010 at 8:39 AM · edited Sun, 17 November 2024 at 8:14 AM

Have an old script written in 2003 by Ajax called SavePose. it makes a call to

import SimpleDialog.

I can find the file SimpleDialog.py in my copy of Poser6 under Runtime:Python:lib:lib-tk:

The script worked all the way up to P7 and PoserPro. Now it does not work under P8 or PoserPro2010. I assume under P8 or PoserPro2010 it is looking for these  libs files elsewhere or outside the Poser runtime environment on my hard drive or should I just copy the lib file from Poser 6 and throw it in Poser8 and PoserPro2010?

Thanks in advance for any help
Gary

Gary

"Those who lose themselves in a passion lose less than those who lose their passion"


Dizzi ( ) posted Sat, 20 February 2010 at 9:27 AM

The script is working fine for me with Poser Pro 2010 on Windows.



grichter ( ) posted Sat, 20 February 2010 at 9:34 AM · edited Sat, 20 February 2010 at 9:35 AM

Well I assume it is a Mac thing then. Need to find out where it is looking for simpledialog and glob so I can place them there.

Dumb question even if you are on windows. Is there a folder named lib in your runtime:Python folder in PoserPro 2010?

Gary

"Those who lose themselves in a passion lose less than those who lose their passion"


Dizzi ( ) posted Sat, 20 February 2010 at 9:37 AM

Yes, it's there. And Simpledialog.py is in runtime:python:lib:lib-tk.



grichter ( ) posted Sat, 20 February 2010 at 9:44 AM

Thanks. I took a leep and copied and moved it there and it now the script doesn't crash

Gary

"Those who lose themselves in a passion lose less than those who lose their passion"


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.