Forum: Poser Python Scripting


Subject: Moving morphs between different figures

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


Cage posted Fri, 12 January 2007 at 6:05 PM

Svdl's suggestion to compensate for polygons at region edges (back on page 1) was to extend the range of the regions to include the polygons.  I'm trying to do this by calculating the polygon regions using a vertex regions dict derived from octree regions which have been extended, then.  Unfortunately, I'm getting funny results with my box enlargement code.  What I had was wrong when the box isn't centered at (0,0,0).  Properly scaling apparently involves vector multiplication by a scalar value, but when I do that I end up with strange offsets in the resulting scaled regions.

That is, instead of each region being scaled up until the edges overlap, the entire box is scaled up and positioned on y with the min at y = 0.  I get too easily confused when trying to visualize math....  😕

I'm going to do some searching online to find scaling math.  This is pitiful.  :-P

Did you note any RAM leaks when running the above test?  If not, what version of Poser are you using?  If so, how dramatic was the leak?

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