Wed, Nov 20, 12:36 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 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: WXpythonising an old script that uses Tkinter


Lucifer_The_Dark ( ) posted Thu, 20 August 2009 at 4:14 AM · edited Sun, 17 November 2024 at 1:10 AM

Not wanting to go into too much ancient history but I had a different user name & account here a few years ago & while using that account I bought a Python script which uses Tkinter.

Now with no proof of purchase I'm pretty much stuffed when it comes to updates & seeing as I now have Poser8, I'd like to be able to remove the Tkinter references from the script & replace them with WXpython, is it possible & if so how easy is it to do?

Windows 7 64Bit
Poser Pro 2010 SR1


PhilC ( ) posted Thu, 20 August 2009 at 6:27 AM

You would need to rewrite the GUI from scratch using wxPython then link the callbacks back to the original script. Tkinter still works in Poser 8 so to understand the question better, may I ask why you would want to do this?


Lucifer_The_Dark ( ) posted Thu, 20 August 2009 at 7:51 AM

I'm talking about the Occlusion master script, when I run it an extra screen opens in the background that stays around if the script ends badly & stops me loading the script again (or any others) until I restart Poser, so far I haven't seen a wx enabled script do that & thought it might be possible with a small amount of work to replace Tkinter with wx myself.

I suppose I really need to be a code wizard like yourself to do it properly?

Windows 7 64Bit
Poser Pro 2010 SR1


nruddock ( ) posted Thu, 20 August 2009 at 3:34 PM · edited Thu, 20 August 2009 at 3:34 PM

Quote - I'm talking about the Occlusion master script ...

Unfortunately that is/was a commercial script.

Quote - I suppose I really need to be a code wizard like yourself to do it properly?

The problem would be getting permission to both supply someone who can do what you want with the script, and to distribute the modified version.


Lucifer_The_Dark ( ) posted Fri, 21 August 2009 at 4:23 AM

I wasn't planning on doing anything like that, this was purely to see if it was possible & if I myself could do the job with my long out of date programming skills. Anyway the script is still on sale so anything like me giving it to someone would be way out of line.

Windows 7 64Bit
Poser Pro 2010 SR1


nruddock ( ) posted Fri, 21 August 2009 at 9:20 AM

Possible, yes.
Doable by you obviously depends on how well you understand both tkinter and wxPython in order to be able rewrite the GUI.

The best way to start would be to equip youself with a standalone Python 2.4, wxPython 2.8.9.1, and the wxPython demos, so you can explore and experiment.

Once you have some feel for how to do a fairly simple dialog in wxPython, you and start to tackle both the conversion from tkinter and the extra wrinkles involved because you're using wxPython with Poser (by the time you get this far, I should have been able to post some helpful stuff).


Lucifer_The_Dark ( ) posted Fri, 21 August 2009 at 10:29 AM

Thanks for that :) I have now invested in both parts of the Python you mentioned & will hunt down a few demos, I guess they'll be on the site where I got wxpython?

Windows 7 64Bit
Poser Pro 2010 SR1


nruddock ( ) posted Fri, 21 August 2009 at 10:59 AM

Attached Link: http://sourceforge.net/projects/wxpython/files/wxPython/2.8.9.1/

> Quote - I guess they'll be on the site where I got wxpython?

Yes, in the 2.8.9.1 block of files.
As I don't know whether you're using Windows or MacOS I can only link you to the folder level.


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.