Is it possible to render the first person completely seperately. Not panini related

No, im agreeing, I know its possible with a masked material, im saying is there a way to dynamically create the opacity mask rather than just creating one for the weapon that I hope works for every weapon.