ScriptSpot

Forum topic · General Scripting

Help with scripting with smoothing groups :(

By markg · 2017-06-16

Downloads
Description

so I have this script that deals with the smoothing groups, please see the attatched file

How do I optimize this or make it in array?

Thanks in advance!

Comments (2)

markg · 2017-09-21

Oh my, You sir are my fav person in the world now, thanks a bunch!

.

miauu · 2017-06-23


(
	selObjsArr = selection as array
	if selObjsArr.count != 0 then
	(
		
		for o in selObjsArr where (classOf o == Editable_Poly) do
		(
			select o
			for i = 1 to 18 do
			(
				o.EditablePoly.selectBySmoothGroup i
				macros.Run "PolyTools" "SmoothSelection"
			)
		)
	)
	else
		messagebox "Select some objects" title:""
)

You can try to wrote your own script that works clever than what is printed in the maxscript listener.