The script below generates a mask shape for the selected layer that may be a regular (or stretched) polygon or a star shape. Parameters include number of sides or points, rotation, and rounding.
This script is dependent upon:
UILayout_13.jsx
Usage:
Simply copy the script in to After Effects' scripts folder along with (lib)/UILayout_13.jsx. Select a layer, run the script, enter the desired parameters, and click [Create Shape].
Download CreateShape_0_1.jsx