Forum: Poser Python Scripting


Subject: Moving morphs between different figures

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


Spanki posted Mon, 17 March 2008 at 2:29 AM

Before I go absent, here's a quick list of the (current) TriPoly members...

Creation:

TriPoly( int v0, int v1, int v2, int polyNdx, int triNdx
)<br></br>

Members:

v0.............. (int)    vertex index<br></br>
v1.............. (int)    vertex index<br></br>
v2.............. (int)    vertex index<br></br>
polyIndex....... (int)    index of the polygon this
triangle was spawned from <br></br>
triangleIndex... (int)    index of the triangle
within that polygon<br></br>
plane........... (float)  plane equation<br></br>
normal.......... (Vector) tri-poly face normal<br></br>

...the above can be assigned or retrieved, using the names given above, but you need to either assign the normal and plane values by hand before retrieving them, or call the:
 
Generate_TriPoly_Normals( list_of_tripolys, list_of_vectors )

....routine to get them generated for you first (but don't call that before filling in the tripolylist and vectorlists :) ).  The example script has examples of much of this, along-side alternative code that does the same thing.

Cinema4D Plugins (Home of Riptide, Riptide Pro, Undertow, Morph Mill, KyamaSlide and I/Ogre plugins) Poser products Freelance Modelling, Poser Rigging, UV-mapping work for hire.