In Photoshop I merge my layers and Select Layer Transparecny. Then I go to the channels and create an alpha channel. I then fill in the selection with white. Everything else in the black is what will get keyed out. The I select the RGB channels and save out as Targa with alpha.