Sat, Nov 23, 12:55 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 21 6:06 am)



Subject: Python scripts


draught ( ) posted Sat, 07 February 2004 at 5:12 AM · edited Sat, 23 November 2024 at 12:25 PM

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...

My python page
My ShareCG freebies


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.

My python page
My ShareCG freebies


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/

My python page
My ShareCG freebies


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.

My python page
My ShareCG freebies


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.


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.