Last active
July 2, 2018 15:50
-
-
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
This file contains hidden or 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
( | |
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