Material and object id addon query

Hi;

I wanted to as if there are any addons out there that can assign unique Object and Material IDs to all objects and materials in a scene to use as layers with an openExr image output before I go ahead and jot one down myself. I’m on a tight deadline, so I just wanted ask the board first…

Thanx in advance for all replies.

Cheers;

AJ