there is a script that will connect a mask vertex to a 2d point (like position). however, you'll need to convert you 3d light's position to a 2d position (presumably a null) since i don't think the script does this. you can do that with an expression on the null... some thing like this (from motionscript.com) should do it:
target = thisComp.layer("UL"); // change this to one of your lights
fromComp(target.toComp(target.anchorPoint));
or, if you don't need a mask, but could use a layer with the corner pin effect, then you could just use that expression as it was originally used:
http://www.motionscript.com/design-guide/threeD-corner-pin.html
that layer could then be used as a track matte (or similar) if that's what you intended the mask to be used for.
Kevin Camp
Senior Designer
KCPQ, KMYQ & KRCW