Forum: Poser Python Scripting


Subject: Moving morphs between different figures

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


Spanki posted Wed, 19 March 2008 at 2:42 AM

I still haven't run your script, but I did notice this...

class myMesh(object):<br></br>
    def __init__(self,geom,meshtype):<br></br>
        if meshtype ==
"vert": #verts, vnormals<br></br>
           
self.verts = getVerts(geom,1)<br></br>
           
self.pverts = getPolys(geom)<br></br>
           
self.vpolys = vertpolys(geom,self.pverts)<br></br>
           
self.pnorms = getPolyNorms(self.pverts,self.verts,1) #Normals for
not-triangulated polys<br></br>
           
self.vnorms = vertnorms(self.vpolys,self.pnorms)<br></br>
           
#self.pverts = self.pnorms = self.vpolys = []<br></br>
        if meshtype ==
"poly": #verts, pverts, tverts, pnormals, planes<br></br>
           
self.verts = getVerts(geom,1)<br></br>
           
self.pverts = getPolys(geom)<br></br>
           
self.tverts = getTriPolys(self.pverts,1)<br></br>
           
self.vpolys = vertpolys(geom,self.tverts)  # <--- ** BUG **
vertpolys() doesn't deal with TriPolys<br></br>
           
Generate_TriPoly_Normals(self.tverts, self.verts)<br></br>

...note the ** BUG ** line above.  Fortunately, you don't need to call vertpolys for that mesh, so you can just comment that line out (or better yet, delete it).

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.