Create driver to select material

I am trying to select the material of an object based on the rotation of a bone.
However what I cannot figure out is how/where I can add a driver to select the material to be used.

A workaround would be to have different objects with one material each and drive the visibility of the objects with the bone rotation, but that is ugly.

What exactly are you trying to do? I get that you are trying to change a material based on rot of a bone, but what exactly are you trying to change about the material? The color? The spec? You can add drivers to those values, and I’m assuming most other material values can be driven as well.

I have removed materials and added materials via a python script before, so I’m thinking you could use a python scripted driver to do this…

Yeah, I get what you are saying about objects with different materials and driving the visibility/rendering of each object. But at the end of the day, there’s nothing ugly about going with the easiest route to get the results you want.

Randy