Forum: Poser Python Scripting


Subject: Moving morphs between different figures

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


Cage posted Tue, 09 January 2007 at 5:24 PM

Okay.  Muddling through the allusion to inverse proportionality in svdl's most recent post....

distance = distance between meshA vertex and meshB vertex

threshold = a constant

weight = threshold/distance

I think threshold might be able to be calculated as an expression of relative vertex densities between to octree regions.  This is where I become uncertain.  Perhaps the area of a region's bounding box divided by the number of vertices in that region?  But then the comparison between the densities per region for the two meshes needs to be factored in.  And I'm not convinced that this idea is sound at all, in the first place.

One could assign threshold as a true constant at the outset and not consider the mesh densities, but that seems like it would be too broad and wouldn't always apply in any given case.  I assume the "constant" needs to vary with the densities of the meshes being compared.  So a relative constant, if that's not an oxymoron.  Hmm.

I'm not sure this would help for downhill, and I'm puzzled about implementation for uphill.

Any thoughts?

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