ScriptSpot

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)

barigazy · 2013-11-26

Try this tool

draging · 2013-11-26

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

barigazy · 2013-11-26

Ok I will create scrip for you. Just hold on

barigazy · 2013-11-27

Sure. Tomorrow. :)

draging · 2013-11-27

thanks barigazy... I'll wait :)

draging · 2013-11-28

yes that's what I need :D ..... thank you very much Barigazy