ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
With this fn you can clear SG, set Mtl id to 1 and triangulate EditablePoly objects.
fn clearSmoothAndID = ifselection.count > 0 do(
local setSG = polyop.setFaceSmoothGroup, setFID = polyop.setFaceMatID, retriangulate = polyop.retriangulate
for o in selection where isKindOf o Editable_Poly do(
e = #{1..o.faces.count}
setSG o e 0 ; setFID o e 1 ; retriangulate o e
))
macroscript miauuClearSmoothingGroups
category:"miauu"
tooltip:"Clear SGs"
buttonText:"Clear SGs"(ifselection.count != 0 do(for o in selection as arraydo(
case classOf o of
(
Editable_Poly:
((
o.selectedfaces = #{1..o.numfaces}
o.setSmoothingGroups 0 -1 1
))
Editable_Mesh:
(
facesBA = #{1..o.numfaces}
o.selectedfaces = facesBA
for f in facesBA do
setFaceSmoothGroup o f 0
update o
)))))
Comments
With this fn you can clear
With this fn you can clear SG, set Mtl id to 1 and triangulate EditablePoly objects.
bga
.
Try this:
Tools and Scripts for Autodesk 3dsMax
Great !!
It is just what I was looking for ! Thank you so much miauu !!
really really thank you
very kindly , very good working
thank you ~
.
Glad to help. :)
Tools and Scripts for Autodesk 3dsMax
.
How you doing this manualy?
Tools and Scripts for Autodesk 3dsMax
yes manua is good , but
i worked many times modfiction from cad
so i need that