How to make a transparent reflective surface with transparent film I want to make a mirror surface that is invisible, but still shows reflections. I found this nearly identical question but the only answer didn't work for me. It works great normally, but when I set the film to be transparent, the reflections disappear along with it:

The weird thing is that it looks fine in the 3D view:


My materials set up is exactly the same as in the question I linked above, with a transparent and glossy shader added together:


So is it possible to have both a transparent background and a transparent reflective surface in cycles at the same time? Should I work around it with some compositing?
In the end, I went with compositing an opaque background image underneath the transparent layer and that worked alright, but before that I used this node setup to set the alpha value based on the value of each pixel.



The Subtract node is used as a minimum threshhold. You might have to tweak that depending on your setup.

The first Multiply is just a messy way to get a definite 1 or 0 on whether or not the pixel should be visible or not.

The second Multiply is used to set the final alpha value for the partially transparent pixels.

The Add node at the end is just to make sure that no previously-opaque pixels become transparent.

In my case it ended up looking like this: