Make an object invisible to object id pass

Is there a way to make an object invisible to the object id pass? when I am doing a product rendering i may have some planes next to it to add extra shading, in the object id pass i can see these planes.

How do i make it invisible to the object id pass?