Skip to content

Instantly share code, notes, and snippets.

@ghiboz
Last active August 29, 2015 14:07
Show Gist options
  • Save ghiboz/82bf7f24adcb01217471 to your computer and use it in GitHub Desktop.
Save ghiboz/82bf7f24adcb01217471 to your computer and use it in GitHub Desktop.
weld vertex and smooth the meshes
macroScript WeldSmooth category:"ghiboz"
(
for o in selection do
(
if( isKindOf o GeometryClass ) then -- weld only in geometry objects
(
if classof o.baseObject == Editable_Mesh then
(
print o.name
meshOp.weldVertsByThreshold o.mesh o.mesh.verts 0.001
meshOp.autoSmooth o.mesh o.mesh.faces 45.0
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment