Can I use viewport modes as driver variable? I am using an addon that replaces the default world in blender, however it's hindering the viewport performance in solid mode for about 20-30% fps drop. Is there a way I could make the driver that would switch the addon off when I go to solid view and back on when I go into render view ? The Addon I'm using is called &quot;Physical Starlight And Atmosphere&quot; and it has a checkbox to enable and disable it in the &quot;N&quot; Tab.
I'm pretty sure there is some way to put a line of code into the driver's variable to make it work, i just don't know much about coding at all.
In 2.90, I can right-click on the viewport shading buttons and select &quot;copy as new driver&quot;. Then I can right-click on a property and select &quot;paste driver&quot;. So, it looks like the functionality exists. But, the variable (named shading.type) seems to always read as zero, so maybe the function doesn't actually work in this version.