Obtain alpha values from custom stencil

If I am not wrong custom stencil values are the same in all channels, meaning that it doesn’t matter which channel you choose. I didn’t work with custom stencil that much, but I think you would need another node such as sceneTextureOpacity