Skip to content

Instantly share code, notes, and snippets.

@3dAsmol79
Last active July 2, 2018 15:50
Show Gist options
  • Save 3dAsmol79/048cc9fc0870a7eadea43db8265ec6ae to your computer and use it in GitHub Desktop.
Save 3dAsmol79/048cc9fc0870a7eadea43db8265ec6ae to your computer and use it in GitHub Desktop.
MaxScript - Collaspe Imported Mesh to reduce Non-Smooth faces and Reset UVW Map Scaling. Also adds Centred Pivot to Base
(
MeshColSmoothMod = SmoothModifier()
MeshCollobjs = selection as array
for i = 1 to MeshCollobjs.count do
(
ConvertToMesh MeshCollobjs[i]
addModifier MeshCollobjs[i] (MeshColSmoothMod)
MeshCollobjs[i].modifiers[#Smooth].autoSmooth = False
MeshCollobjs[i].modifiers[#Smooth].preventIndirect = False
ConvertToMesh MeshCollobjs[i]
ResetXForm MeshCollobjs[i]
ConvertToMesh MeshCollobjs[i]
MeshCollobjs[i].pivot = [MeshCollobjs[i].center.x,MeshCollobjs[i].center.y,MeshCollobjs[i].min.z]
print MeshCollobjs[i].name
)
actionMan.executeAction 0 "310" -- Zoom Extents Selected
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment