# matrix to position to center pos_mat = om.MMatrix( [ (1,0,0,0), (0,1,0,0), (0,0,1,0), (-o.x,-o.y,-o.z,1) ] ) # matrix to flatten on y scale_mat = om.MMatrix( [ (1,0,0,0), (0,0,0,0), (0,0,1,0), (0,0,0,1)] )
fnmat = ( pos_mat * rot_mat ) * scale_mat# fnmat = pos_mat for i in xrange( fnm.numVertices ): fnm.setPoint( i , fnm.getPoint( i) * fnmat ) # fnm.getPoint( i) * fnmat.inverse() to reverse does not work / is odd looking Styling with Markdown is supported <https://guides.github.com/features/mastering-markdown/> -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/81f06fe1-542a-4771-822e-a8bd43dae50c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.