How to I script this?


#1

Hey all - I’d just like knock up a quick script that selects all verts and welds by 0.01 and then grab all faces and makes them all on smoothing group 1 of any object I have selected

Is this possible?

Thanks guys


#2

for obj in selection where iskindof obj editable_poly do
(
   obj.weldthreshold = 0.01
   polyop.weldvertsbythreshold obj #all
   polyop.setfacesmoothgroup obj #all 1
   update obj
)

for editable meshes it’s similar, what you can find in the MXS help