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 7:22 PM

This is what I've found for scaling.  Apparently nothing is as easy as one would assume.  Hmm.

"To generate complicated 3D scene animations multiple transformations may be required. For example, scaling of an object not centered at the origin (0,0,0) also results in translation of the object. So, to rotate the object around a fixed point requires three separate transformations: 1)translate that point to the origin, 2) perform the rotation, and 3) translate the point back to the original position."
 
I got your adjusted code to find all the vertices by using both >= and <=.  This seems to work, so far.

I'm not sure how one would go about placing polygons in a region, based on edges.  I can find the edges, but PoserPython, unlike Blender, doesn't recognize that the edges exist.  So I can get the start and end points, but if neither of these vertices lies within the polygon, presumably some kind of special handling for the line of the edge intersecting the box would be needed.  Complicated.  Svdl's approach would rely on making each polygon region larger than the default octree zones, which means looping through more polygons for each zone.  So it looks like there is a potential slowdown, either way....

Could a normals direction comparison be used to screen out edge bound checks before we bother running them?  Or would that potentially miss too many cases?

Ah, I'm afraid I don't follow you, regarding the mixboxes.  😕

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