3ds max script - select object and execute


#1

Hi I have a problem , i need a quick script that can do :slight_smile:

Lets say i have 15,000 objects in one layer
β€’ Select object and do quadrify - press hotkey that i assigned quadrify function
β€’ and to that for whole objects in layer

I know i can’t select all objects and press hotkey(quadrify),

or just simple : select object, press hotkey, and go automaticly to another objects and press hotkey, and keep doing till all objects are done

I have to do that manualy select object and press hotkey β€œ7” - i assigned quadrify (From Customize User Interface)

Need help with this… ; (


#2

Select all objects that have to be processed and execute this in the maxscript editor:

(	
	if selection.count != 0 do with redraw off
	(
		for o in selection where classOf o == Editable_Poly do
		(
			PolyToolsModeling.Quadrify false false
		)
)

#3

are you sure about this code? :wink:


#4

:slight_smile:
The missing bracket is the smaller problem. Thank you. :wink:

(	
	if selection.count != 0 do with redraw off
	(
		selObjsArr = selection as array
		max modify mode
		for o in selObjsArr where classOf o == Editable_Poly do
		(
			select o
			PolyToolsModeling.Quadrify false false
		)
	)
)

The same question was asked 7 years ago: loop/quadrify all objects
:slight_smile: