Assign materialID's to every material in a scene?

Does anyone have any good workflows/scripts to assign material ID’s to every material in a scene? (for use with a VRayMtlID render element).

I believe Max only has a total of 16 material ID channels which is nowhere near enough. I found www.scriptspot.com/3ds-max/scripts/effectschannelset but it works on the Vraymtl’s own ID channel (under the material’s options rollout, can’t recall the exact name) which some Vray shaders such as car paint don’t have?

Cheers

Hi,

I don’t know if it is exactly what you looking for, but there is a way to assign Material ID’s on all scene materials >
Slate Mtl editor > Material menu > Get all scene materials > select all > right click > Material ID channel ..

Hope this helps.