Shadow Capture material

Hi, Looking for help - Is there a way to make a shadow capture material to export an alpha to After effects in order to composite CG over media live action?