-- for editable poly
for obj in selection do ( -- loop through selected objects
obj.weldThreshold = 8.0 -- set weld threshold value
allVerts = #{1..(polyop.getNumVerts obj)} -- get all verts list
polyop.weldVertsByThreshold obj allVerts -- Weld
)
-- for editable mesh
for obj in selection do ( -- loop through selected objects
thresh = 4.5 -- weld threshold
allVerts = #{1..(obj.numVerts)} -- get all verts list
meshop.weldVertsByThreshold obj allVerts thresh -- Weld
)
Saturday, October 23, 2010
Automatize Weld Vertices
Snippet code for quick welding vertices on multiple poly or mesh objects, that I post as reply to that forum thread.
Categories:
MAXScript,
Modeling,
Tip n Tricks,
Tutorials
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thanks for your comment