modifier stack cleaner

I was looking for a script that could go through a scene and if a modifier in the modifier stack was disabled/off then it could be deleted
cheers

Comments

Comment viewing options

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

.

(
	max create mode
	for o in objects do
	(
		if o.modifiers.count != 0 do
		(
			for m = o.modifiers.count to 1 by -1 where (o.modifiers[m].enabled == false) do
			(
				deleteModifier o m
			)
		)
	)
	messagebox "DONE" title:""
)

Comment viewing options

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