Change color with object rotation I want to adjust the color of a material based on an object's rotation. I cannot do this with a driver, because the same material is used over a large number of objects: I would like each object to change color based on its own rotation value. 

Is there a way to do this in either BI or Cycles? More generally, is there a way to change color based on an object property other than position?
Since blender 2.67 you can write a custom pynode or use Animation Nodes as shown below:





Note: Enable cycles first to access the color of the diffuse shader and use the expression node to get correct color values bellow 1.