Forum: Poser Python Scripting


Subject: Moving morphs between different figures

Cage opened this issue on Dec 20, 2006 · 1232 posts


Cage posted Fri, 29 December 2006 at 11:47 PM

I'm not sure this will be useful for anyone else, at least not without a bit of cleanup, but this script provides a Geom class which stores the geometry data in some useful arrangements that PoserPython doesn't automatically provide.  Using Geom.pverts, for instance, you can query whether a vertex index is in a given polygon.  Other variables provide lists of poly/material correlations and vert/material correlations, and the start and end points of polygon edges, as well as edge lengths, are gathered for reference.  It currently has some bounding box functions built it.  If it seems useful to anyone, I'll clean it up a bit.

Run the script in an empty Poser scene to get an example of the formatting of the data which it provides.  (And to see some boxes appear and disappear....)

The V3 head, with 38,000+ verts, runs through the class in about 20 seconds, so it doesn't seem to create any slowdown problems at this point.

===========================sigline======================================================

Cage can be an opinionated jerk who posts without thinking.  He apologizes for this.  He's honestly not trying to be a turkeyhead.

Cage had some freebies, compatible with Poser 11 and below.  His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.