if i select objects editable meshs or editable polys
i would like to clear smoothing groups
can you help me again ?
thank you always
Forum topic · Scripts Wanted
By dussla · 2014-07-16
if i select objects editable meshs or editable polys
i would like to clear smoothing groups
can you help me again ?
thank you always
barigazy · 2015-06-19
With this fn you can clear SG, set Mtl id to 1 and triangulate EditablePoly objects.
fn clearSmoothAndID = if selection.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
)
)
.
miauu · 2014-07-21
Try this:
macroscript miauuClearSmoothingGroups
category:"miauu"
tooltip:"Clear SGs"
buttonText:"Clear SGs"
(
if selection.count != 0 do
(
for o in selection as array do
(
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
)
)
)
)
)
really really thank you
dussla · 2014-07-30
very kindly , very good working
thank you ~
.
miauu · 2014-07-30
Glad to help. :)
Great !!
Tommy_LedZep · 2015-06-19
It is just what I was looking for ! Thank you so much miauu !!
.
miauu · 2014-07-16
How you doing this manualy?
yes manua is good , but
dussla · 2014-07-21
i worked many times modfiction from cad
so i need that