Help with scripting with smoothing groups :(

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!

AttachmentSize
1.jpg385.83 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

(
	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.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.