Macro for Material Color change?

Hi -
The -Layer command lets you select an existing material to assign to a layer.
Changing a material’s properties is possibly scriptable…
-wim

Thank you for your reply.