ScriptSpot

Forum topic · Scripts Wanted

modifier stack cleaner

By brit · 2014-08-08

Description

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 (1)

.

miauu · 2014-08-08


(
	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:""
)