Mon, Oct 21, 10:40 PM CDT

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: PIL in Poser 8


PhilC ( ) posted Fri, 25 February 2011 at 11:55 AM · edited Tue, 08 October 2024 at 4:03 PM

Running:-

from PIL import Image,ImageDraw,ImageFont
font = ImageFont.truetype("arial.ttf",15)

Results in:
ImportError: no module named _imagingft

The file is there in my "stand alone" Python with PIL but not in the Poser 8 version. Anyone able to shed any light on this?

Thanks.


semidieu ( ) posted Fri, 25 February 2011 at 2:26 PM

I don't have it too :(

There would be so many things we could do with this module... I already tried a little to work with fonts, but with no luck.

Did you mentioned already this in the Poser bug database ? Perhaps they could provide an update for this ?


PhilC ( ) posted Fri, 25 February 2011 at 4:08 PM

May be too late?

Also PIL is installed under Lib rather than the more usual Libsite-packages so import Image does not work, you have to do from PIL import Image.


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.