Forum: Poser Python Scripting


Subject: remove a slice from bottom of a prop..??

dennisharoldsen opened this issue on Apr 08, 2008 · 32 posts


Cage posted Thu, 10 April 2008 at 8:09 PM

To create a trimmed prop using the approach in my example... might not be as easy as it could be.  I've tinkered a bit with the idea since posting the above, and I haven't yet come up with a relatively simple way to work in the screening.  All of the Numeric arrays used to create the new prop will have to be screened, not just the vertices.  The polygons and sets and texvertices and texpolygons and texsets and materials lists all need to be screened, too.  My approach doesn't really offer a straightforward way to do that.  It can be done, it will just have to be a more complex process than it necessarily needs to be, because of the framework I used.

Right now I'm wondering about using the CreateGeomFromGroup option.  A pose can be used to insert a group into a prop, then the script can fill the group with the appropriate polygons.  Spawning a trimmed group that way might be a simpler approach.

On the other hand, the reason I create the geometry from scratch in the example I posted is that PoserPython creates some problems when geometries are copied using a script.  If you build a prop using the geometry of an existing prop, then delete the original prop, Poser (7, at least) may crash, in my experience.  So possibly a combination of the group approach and the fresh copy approach might work.  Create an internal geometry from the group, then make a fresh copy of it using the method in my posted script, then build the prop from that.

Anyway, I'm curious about the idea, so I'm going to fiddle about.

Can you explain the fishbowl in two parts?  I assume that's split vertically somehow?  Hmm.  I'm having trouble visualizing what you want, there....

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