ScriptSpot home

Forum topic · General Scripting

Delete multiple modifiers

By draging · 2013-11-26

Description

hallo everyone

how to delete 2 or more modifiers at once

example :
I have many modifier in one object
then i want to delete only turbosmooth,skinwarp,skin and keep the other modifiers with a single click

Comments (9)
Branko Živković

Try this tool

thx barigazy,... but that is not what I need

I need a looping function

I tried but this is doesn't work for me

for obj in selection do
(
for m in obj.modifiers do
(
if classOf m==turboSmooth do deleteModifier obj m
if classOf m==skin do deleteModifier obj m
if classOf m==skin_wrap do deleteModifier obj m
)
)

I can make the buttons one by one like delete TurboSmooth , delete skin and delete skin wrap ...
but I need to delete all at once to the target modifier