[Maya-Python] Re: Delete Face Maya API

2015-10-06 Thread Dilen Shah
Hey Francesco, Well i went the hard way building the whole mesh without the faces i didnt need, thus getting all the vertices in order and using MfnMesh.create() to build the whole mesh from scratch actually. I dont know if this is what you wanted but this is how i did it and its faster than d

[Maya-Python] Re: Delete Face Maya API

2015-10-06 Thread Francesco Leacche
Hello Dilen, sorry for rising this old post, anyway I am encountering the same problem: I have to iteratively eliminate group of faces from a mesh. Using MFnMesh.deleteFaces() is horribly slow for each face and using extractFaces doesn't work properly (faces eliminated in the last iteration re-

Re: [Maya-Python] Is it possible to freeze .ptns (tweaks) on a mesh using python?

2015-10-06 Thread Michał Frątczak
That seems to do it. Thanks to all. On Tuesday, October 6, 2015 at 9:45:34 AM UTC+2, Marcus Ottosson wrote: > > Try this. > > cmds.polyMoveVertex("pCubeShape1", constructionHistory=False) > > - > http://download.autodesk.com/us/maya/2011help/CommandsPython/polyMoveVertex.html > > Alternatively, c

Re: [Maya-Python] Is it possible to freeze .ptns (tweaks) on a mesh using python?

2015-10-06 Thread Marcus Ottosson
Try this. cmds.polyMoveVertex("pCubeShape1", constructionHistory=False) - http://download.autodesk.com/us/maya/2011help/CommandsPython/polyMoveVertex.html Alternatively, connect the outMesh to a new mesh, as in my first post. And then, disconnect, and connect the outMesh of the new mesh into the

Re: [Maya-Python] Removing tweaks from meshes - pt attribute

2015-10-06 Thread Nicolas Combecave
We found that applying a deformer, and deleting history "bakes" everything down and cleans those vertex tweaks... Might not be applicable to your situation though... 2015-10-05 17:32 GMT+02:00 f.michal : > Hi > Some time ago I was bitten by a nasty bug and it took me a while to pin > that down.