Using this it'll be faster ? the problem with this one is it requires mvectorArray to be as the same size as the vertex list, while I only have one common normal to apply ... Should I duplicate it time the number of vertices within the list ?
And is there a cool way to duplicate element within a list x number of time in python ? Also I'm so happy this group exist Le samedi 25 février 2017 00:42:16 UTC-8, Christopher Crouzet a écrit : > > MFnMesh.setVertexNormal*s*()? > > > On 25 February 2017 at 14:58, justin hidair <[email protected] > <javascript:>> wrote: > >> I made a cool script (just starting in the Python API game) >> it works like intend but the problem is speed, therefor performances.. >> >> >> >> *Imagine a set of faces ... why not something like 5984 polygons(=11800 >> tris)now imagine you iterate over these faces and for each you get their >> set of vertex, and within that set you iterate through each vertex to set >> the normal* (*With MFnMesh.setVertexNormal()* ) >> >> like you can imagine that's Reeally quick with a thing like a beveled >> cube (26 polys) >> >> >> >> *NOW, how Maya can update its vertex normals on the fly even with huge >> dense objects, and I get slow, and laggy with simply setting vertex >> normals???, even though It's not C++that's not fair ! there must be a way >> ^_^* >> >> -- >> 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/11408607-bfc6-4faa-a852-20756b39921e%40googlegroups.com >> >> <https://groups.google.com/d/msgid/python_inside_maya/11408607-bfc6-4faa-a852-20756b39921e%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Christopher Crouzet > *https://christophercrouzet.com* <https://christophercrouzet.com> > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/b375fb71-0d6e-4fc6-8a43-dd9db8088fc5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
