2
$\begingroup$

I know that I can click and drag at monitors to kind of disable modifiers in Blender, but it's not working in heavy objects with ton of modifiers. Is there any addon to do that? Or any workaround?

I heard of the Display Tools addon, but unfortunately I didn't find it for Blender 2.93.

$\endgroup$
1
  • 1
    $\begingroup$ would a python solution be ok for u? $\endgroup$
    – Chris
    Aug 21, 2021 at 7:17

2 Answers 2

11
$\begingroup$

There's a built-in add-on called Modifier Tools.

With it, you get this little dialog:

Screenshot of Modifier Tools

$\endgroup$
2
  • $\begingroup$ How much do you want as payment my friend ? $\endgroup$ Aug 21, 2021 at 11:58
  • 2
    $\begingroup$ :) - Give it to the actual developers of the Add-on. $\endgroup$
    – michaelh
    Aug 22, 2021 at 8:59
6
$\begingroup$

A script.

As answered by @michaelh Please accept that answer if using modifier tools addon answers your question

There is an existing addon modifier tools to multi set all modifiers in the stack of the context object.

For multiple objects.

Misread question, as to setting all modifiers on multiple objects.

Iterate over selected objects and set show in render and viewport to True if option = 'ENABLE', false with 'DISABLE' or toggle value.

import bpy
from bpy import context

option = 'TOGGLE' # in 'ENABLE', 'DISABLE', 'TOGGLE'

for ob in context.selected_objects:
    for mod in getattr(ob, "modifiers", []):
        if option == 'TOGGLE':
            mod.show_viewport = not mod.show_viewport
        else:
            mod.show_viewport = option == 'ENABLE'
        # optional
        #mod.show_render = mod.show_viewport # keep same

Note will disable for any option not in 'ENABLE', 'TOGGLE'

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.