you have two possibilities, one is to do a different layer with diffrent proprities for eatch one , the second is to do a macro witch able to change the elements material
This 'do' program is good for when the material variation in one direction but if the material is required to vary in Two directions then how to modify 'do' codes