Creating a driver that can hide modifiers

Hi y’all.

Picture a situation of where an object (like a sphere, for example) has a shrinkwrap modifier. But what if there was a driver on the modifier’s display buttons (y’know the hide/show buttons at the top) that could make the buttons disable themselves if I moved a certain bone?

How do you do that? Knowing that it allows drivers to begin with likely means it’s possible. I looked everywhere and I don’t think I can find anyone with the same problem I have.

Hide buttons ? Why ?

If you just want to enable/disable a modifier then just add a driver to the eye/camera icon and drive with an empty/bone location (0 = off, 1 = on)


well okay then lol

As it turns out there was someone else with a very similar problem. The rest was easy to find out.