Blender.Today
Blender.TodayCommunities will soon be discontinued.
Script to Set Viewport Color based on Node tree

Here is a script to set the viewport color of an object based on the average color of the nodes in the node tree. Because I always hate having to go back in and change these settings by hand when using node-based materials. It still needs to ignore connected sockets, but it's not terrible.

github.com/johnnygizmo/set_viewport_color

color.gif