Add a Vray attribute to several object/shader.

Hi,

Would it be possible to add a Vray attribute to several selected object or shaders.
here is where I have a problem:
I need to add a Multi Matte attribute to several shaders. It would be nice if I could select a couple of shaders, then in the AE, go attribute/Vray/Material ID, and the attribute gets added to every selected shaders. Then I can go and modify it per shaders.

Thanks,

Yannick

You might know already, but this can be accomplished with a couple of lines of mel or python (not including any nodeType checking or error handling):

// mel:
for ($mat in `ls -sl`)
    vrayAddAttr $mat vrayColorId;