An easy way to do this is by assigning an index to the material and in the compositor, apply alpha = x where the material is shown. I am not 100% certain this will work for you though.<br>