Change color of component in specific configuration via API

Hi, all,

I'm trying to change the colors of specific configurations of components.  How do I do this via the API?  I am currently using Body2.MaterialPropertyValues2 to change the color, but this changes the color in all configurations of the part.

Any help appreciated!

SolidworksApi macros