Sat, Nov 30, 1:51 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: Picture in Button


Grammer ( ) posted Sat, 13 April 2002 at 5:01 AM · edited Tue, 26 November 2024 at 3:51 PM

Hi: I am currently writing a small programm which can evolve facial expressions - my question, is how do I get apicture from a file into a button ? Thanx, Karl


Montressor ( ) posted Sun, 21 April 2002 at 12:41 PM

First construct at label like this:

label = Label(root,bitmap=, ...other options ...)

use the place geometry manager to put it inside your button wherever you want it.

If you need more code, let me know...

Montressor


Grammer ( ) posted Mon, 22 April 2002 at 10:00 AM

file_4422.jpg

Thanx, in the meantime I had managed this, but in a weird way. I couldnt get an image from poser through PIL and then into TK. Now I save it from Poser as a TIF, load it in PIL, then save it as GIF and finally load it into TK. Apparently nobody could help me to find a better way of bringing a picture from Poser to TK. Is there one ? The programm itself uses a genetic algorithm to evolve facial expressions - the user clicks into one he likes, and then the evolution process takes place. This can be done with faces and even whole figures.


Montressor ( ) posted Wed, 01 May 2002 at 5:25 AM

Nice idea. However, Poser (at least, as far as I know) will not save gifs directly. wxPython will handle jpgs, which it will save, but not Tk.


Montressor ( ) posted Thu, 02 May 2002 at 12:06 AM

Oh, am I dumb! Why not just export the jpg and then use ImageTk.PhotoImage to get it back in?


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.