One of the easiest ways to do this, if you have Illustrator, is to enable AICB Illustrator support in the settings ("Clipboard Processing"), with "Save Paths". You can then copy all the masks into a layer and paste them into a document in Illustrator.
Solidids, . Shape Layers ; , , . , . script aescripts.com.