Rendering Script wanted

Hello,

I'm an architectural visualizer. In post production I need to seperately select three adjacent polygons for adjustment of brightness and contrast etc. Please see the example picture attached. The polygons towards the key light are all in one color, polygons in shade in one color and polygons parallel to ground in one color. For chamfered corner polygons it assigns another color. For ramp it assigns another color. Could anyone help write a script to render such thing out? Thanks.

AttachmentSize
sample2.jpg3.31 MB