Fri, Nov 22, 1:30 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: Some questions (grouping, pictures and PC vs MAC)


semidieu ( ) posted Sat, 04 November 2006 at 9:50 AM · edited Tue, 19 November 2024 at 9:18 AM

Hi all...

Some little questions:

1° Using Python, is it possible to apply the grouping tool: "Create UV from perspective" ?

2° Is it possible to deal with picture with the actual Python version ? What I want is get an "average" color from an imageMap. I know I should use PIL, but I don't have a compiled version for MAC. So, if I want to create a MAC/PC python scripts that deals with pictures, how do I do that ?

3° Do you know of an application that create the "dialogs" in xml (visually) ? I know PoseWorks has the pzrXML dialog class, but is ît compatible with Mac ?


nruddock ( ) posted Sat, 04 November 2006 at 4:16 PM

Quote - Some little questions: 1° Using Python, is it possible to apply the grouping tool: "Create UV from perspective" ?
2° Is it possible to deal with picture with the actual Python version ? What I want is get an "average" color from an imageMap. I know I should use PIL, but I don't have a compiled version for MAC. So, if I want to create a MAC/PC python scripts that deals with pictures, how do I do that ?
3° Do you know of an application that create the "dialogs" in xml (visually) ? I know PoseWorks has the pzrXML dialog class, but is ît compatible with Mac ?

  1. Can't find anything in the docs, but creating UVs for the equivalent of Front, Side, or Top views should be easy to code (calculate 2d bounding box and scale coordinates for the two relevant axes).
  2. PIL is definitely the easiest way.
    ImageMagick might be a possibility (there is a Python wrapper for it).
    You could wrap another image handling library, or write your own python code to handle a few common types (possibly by wrapping libjpeg, libpng, and libtiff).
  3. Any XML dialogs generated by Poseworks' library should work on a Mac.
    I know of no GUI designer that produce the required XMl directly, but it might be possible to one that generates XML for another toolkit (e.g. wxGlade for wxWindows) and develop an XSLT transform from that to Poser's XML.


semidieu ( ) posted Sat, 04 November 2006 at 4:50 PM

Quote - 2) PIL is definitely the easiest way.

I searched a bit but... how do the user from MAC get a compiled version of PIL ? I'm on PC and, for Windows, the compiled version exist. For what I know, there is no compiled verison for Mac to download.


nruddock ( ) posted Sat, 04 November 2006 at 5:39 PM

Quote - I searched a bit but... how do the user from MAC get a compiled version of PIL ? I'm on PC and, for Windows, the compiled version exist. For what I know, there is no compiled verison for Mac to download.

It's all done from the source package, plus dependancy installs AFAICT -> http://tomster.org/blog/archive/2005/10/13/pil-on-mac-os-x
I don't know enough about the different Mac binary formats and OS versions to comment on whether or not providing a precompiled library is possible, sensible, or even desirable.


semidieu ( ) posted Mon, 06 November 2006 at 9:11 AM

Thanks for looking.


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.