You can run an id pass (I think that's what it's called) in addition to your regular passes, and that will give you individual control over whatever objects are in your scene. Probably dom can help you out.