4
$\begingroup$

Hi I have these objects in a scene, of which some only have a Build modifer, and others may have a Build modifier and other modifiers (Bevel, etc..)

I would like to remove the Build modifier from all of these objects, but for those objects that have other modifiers preferrably the other modifiers are kept.

If this is not workable, please alternatively advise how to remove all modifiers from all selected objects instead.

Thanks in advance!

screenshot

$\endgroup$

1 Answer 1

4
$\begingroup$
from bpy import data as D

for ob in D.objects:
    for mod in ob.modifiers[:]:
        if mod.type == 'BUILD':
            ob.modifiers.remove(mod)
$\endgroup$
1
  • $\begingroup$ Fantastic, thank you $\endgroup$ Sep 19, 2023 at 4:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .