Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 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.
"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.
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?
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.
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
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.
http://cgkit.sourceforge.net/doc2/ ;-)