Forum: Poser Python Scripting


Subject: usefull for python script programming (Python Computer Graphics Kit)

andygraph opened this issue on Feb 25, 2006 ยท 10 posts


andygraph posted Sat, 25 February 2006 at 1:34 PM

http://cgkit.sourceforge.net/doc2/ ;-)


stewer posted Mon, 06 March 2006 at 1:59 PM

It's pretty nice. I've been using it for my Poser/RenderMan connection script.


MRMH posted Mon, 06 March 2006 at 6:32 PM

Thanx, I need learn all this.


gezinorgiva posted Tue, 07 March 2006 at 10:52 AM

I have been interested for some time now to try learning Python. Have installed Python, Stanis Python Editor and obtained a copy of Python in a Nutshell by Alex Martelli (March 2003) and Beginning Python (Wiley) from last year. Do the Python experts here think it is a good enough kit to make a start or can recommend other resources helpful for a beginner? Thank you.


nruddock posted Tue, 07 March 2006 at 1:59 PM

"is it a good enough kit to make a start or can recommend other resources helpful for a beginner?"
For Python in general this should be enough (browsing the documention to get familiar with the various modules is recommended).

You'll probably want to track down some information on tkInter (for building GUIs).
Documentation and tutorials for tk itself will help.

For Python that has been embedded into an application (e.g. Poser or Shade) you will learn a lot from looking at scripts writtern specifically for that application.


gezinorgiva posted Tue, 07 March 2006 at 2:19 PM

OK thanks for that- I picked up an Introduction to tkinter pdf from pythonware (and something called the PIL library as well). I was thinking of trying to make sense out of Blender scripts first rather than Poser (Shade seems like a bit of a problem) on the grounds that it is open source-would that be sensible way to go?


nruddock posted Tue, 07 March 2006 at 3:38 PM

Like the applications themselves, each scripting implementation has it's own quirks.
The basic Python stuff isn't difficult to get the hang of, but for the application specific stuff nothing but experimentation will help you understand what is required.

Blender has it's own (OpenGL based) GUI toolkit.
Another alternative GUI toolkit is wxWindows.

For extension libraries like PIL which have native components (DLLs or SOs) you need to make sure that you get a version compiled for the correct version of Python.
Installing them can also be tricky as not all embedded implementations make the registry entries Windows installers rely on, meaning you'll need to know where to put the files.


gezinorgiva posted Tue, 07 March 2006 at 5:10 PM

OK I hear you; think I better get to grips with what I have already before I venture anything more complicated. Once again,your advice is much appreciated.


gezinorgiva posted Wed, 08 March 2006 at 9:56 AM

Well my installations all seem to be working OK. Commenced with Python Babysteps Tutorial at http://www.coolnamehere.com/geekery/python/pythontut.html and did "Hello,world" and "Enter your name"! Well its a start; you cant finish if you dont start. Next up is Python for Newbies at http://npt.cc.rsu.ru/user/wanderer/ODP/Python_for_Newbies.htm


odf posted Sun, 19 March 2006 at 10:27 PM

That looks pretty interesting. Thanks for the link!

-- I'm not mad at you, just Westphalian.