Denoising Alpha channel into file output node

Hi,

I am wanting to denoise a bunch of different passes & render layers in blender, and I have realised that I also need to denoise the alpha channel.

I have done this here with the composite node, set to use alpha with the appropriate denoiser nodes. Which works great.

But my problem is I can’t use the composite node as I need to output this render layer into a separate location. So I made this node setup to do that.

However, it still doesn’t denoise properly, would someone be able to point me in the right direction with this?

Is my node setup slightly off?

I have been fiddling with compositing for a few days now and there are some things that are taking ages to do.

Thanks for you help :slight_smile:

I have figured it out.
For anyone also interested this is the working node setup:

The mistake I made was the “set alpha” node had to be set to “replace alpha” not “apply mask”.
Also, make sure to have the HDR box ticked for your image/rgb denoiser node, otherwise, the colours won’t be correct.