Last active
August 29, 2015 14:07
-
-
Save ghiboz/82bf7f24adcb01217471 to your computer and use it in GitHub Desktop.
weld vertex and smooth the meshes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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