PDA

View Full Version : How get the script of the function "Remove Isolated Vertices" in max2009?


perfectboy
07-30-2009, 04:58 PM
Hi guys.

How get the script of the function "Remove Isolated Vertices" in max2009?

Thanks!

PiXeL_MoNKeY
07-30-2009, 05:11 PM
Something like this will do it for you:
macroScript ClearIsoVerts
category:"Craft Tools"
toolTip:"Clear Isolated Vertices"
(
objArr = selection as array
for i in 1 to objArr.count do (
case (classof objArr[i]) of (
Editable_mesh: meshop.deleteIsoVertsl objArr[i].baseobject
Editable_poly: objArr[i].EditablePoly.DeleteIsoVerts()
PolyMesh: objArr[i].EditablePoly.DeleteIsoVerts()
default: messageBox "Please Select an Editable Poly or Mesh Object."
)
)
)This requires an Editable Mesh/poly object, it is not designed to work with the Edit modifiers.

-Eric

perfectboy
07-30-2009, 05:17 PM
Hehe,thank you very much ...Eric!

CGTalk Moderation
07-30-2009, 05:17 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.