Killing unused vertex points
1 Attachment(s)
Hi!
Is there a scrip or something to kill all the vertex points which have no "function"? |
Not sure about a script etc to kill the points, but for future reference, when deleting edges, use the "delete edge/vertex" tool rather than deleting them using the delete key or backspace, that way all unused vertex are deleted as you go. It's in the edit mesh drop menu, about three quarters the way down.
Hopefully someone will know a script or some other way to help get rid of those you have left at the moment! |
Thank you very much for your help :D Very cool. I don't need the script, but I think something like that could be useful anyway.
Cheers, kimsay |
Just select the all the verts and hit delete.. Maya will only delete verts with only 2 connection points (edges). So, as long as you don't select boarder edges, or corner geo (like the corner of a subdivided plane). you should be good to go.
|
So if you were to select the mesh in vertex and deleate would it deleate the useless ones and leave the rest or just not do anything?
|
Quote:
|
Old post I know, but if anyone needs a method other than the built in delete edge/vertex, select all the vertices in the mesh you are trying to target, then:
selected = cmds.ls(sl=1, fl=1) cmds.select(clear=True) for v in selected: if len(cmds.polyInfo(v,ve=True)[0].split(" ")) == 4: cmds.select(v,add=True) cmds.delete(cmds.ls(sl=True)) |
Quote:
|
Quote:
Here's a corrected version: Code:
#python, select target vertices first |
All times are GMT. The time now is 03:02 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018