draught opened this issue on Feb 07, 2004 ยท 12 posts
draught posted Sat, 07 February 2004 at 5:12 AM
Hi,
Can someone please tell me a good place to get Python scripts?I particularly want geom_triangulate.py which is mentioned in one of the scripts that comes with Poser 5.
Thanx
catlin_mc posted Sat, 07 February 2004 at 5:43 AM
Do a search for ockham in the forum, he has loads of scripts he's made at his site and has also been known to make them by request. 8) Catlin
ockham posted Sat, 07 February 2004 at 8:04 AM
The one you're looking for doesn't seem to exist. Those CL sample scripts are an incomplete set, to say the least. I don't know if they just forgot to include geom_triangulate, or found that it didn't work well. Triangulating is not a good candidate for "mechanical" action, so I wouldn't be surprised if the latter case is true. UVmapper Pro will triangulate a mesh; there is also a free-standing Windows program by Anthony Appleyard. Look for his freestuff page...
ockham posted Sat, 07 February 2004 at 2:55 PM
Needless to say, I couldn't resist writing a script. It's almost working.... I need to take a walk to debug my brain, and then it will work.
dagmath posted Sat, 07 February 2004 at 4:13 PM
anyone know where to get good python tutorials its something I would like to learn
"Don't do it with an axe, get a chainsaw"
Gareee posted Sat, 07 February 2004 at 4:23 PM
I got a great python script the other day to save body part scaling the other day.. is there one that will save joint parameter adjustments as well? Basically, I wanted to scale this figure's limbs down, and the new created pose does that fine, but the jp's have to be adjusted because of the scaling. I can do that, but rather then create a whole new figure, it would be nice to have the xy part scaling and the jp adjustments saves as one pose file. Anyone know of anything like this?
Way too many people take way too many things way too seriously.
ockham posted Sat, 07 February 2004 at 4:25 PM
The best starting point for any language is to take existing scripts and try modifying them to meet your goals. ------------ For references, the best website I know of is the Python FAQTS website. python.faqts.org ----------- The tutorial that helped me the most at the start is "Thinking Like a computer scientist": http://www.ibiblio.org/obp/thinkCSpy/
ockham posted Sat, 07 February 2004 at 4:30 PM
Joint parameters are a problem. The hidden parameters that are "dial-like" (offset, endpoint) are available to Python, but the stuff about falloff zone, weights, and such are not available.
dagmath posted Sat, 07 February 2004 at 4:31 PM
thanks ockham ive been scrolling through rendderocity looking for some to no avail. thanks for the heads up. ill go check them out now. ;)
"Don't do it with an axe, get a chainsaw"
Gareee posted Sat, 07 February 2004 at 4:34 PM
Have you seen anything like that, Ockham? If anyone might know, you might...
Way too many people take way too many things way too seriously.
stewer posted Sat, 07 February 2004 at 4:40 PM
the stuff about falloff zone, weights, and such are not available. There is read access to the vertex weights through TwistVertexWeights() and JointVertexWeights().
bushi posted Sun, 08 February 2004 at 12:38 AM
Attached Link: http://poserpython.com
The books I have found most helpful when learning Python where:Learning Python
M. Lutz and D. Ascher
published by O'Reilly
There are two editions to this one. If you're using P5 get the second edition.
Python Visual Quickstart Guide
C. Fehily
published by Peachpit Press
Python Pocket Reference
M. Lutz
published by O'Reilly
Again two editions, get the second edition if on P5.
After you get some Python programming under your belt get these two:
Python in a Nutshell
A. Martelli
published by O'Reilly
Python and TkInter Programming
J.E. Grayson
published by Manning
TkInter is the extension used most often for building GUIs.
I found it helpful to learn about the regular flavor of Python scripting before getting into PoserPython. PoserPython scripts are mainly regular Python with some calls to PoserPython functions added to access Poser itself. If you've got a handle on Python before getting into PoserPython's methods, it's much easier to see what's going on in the scripts.
I have some scripts in the FreeStuff area and also some at the attached link.