Sharing my mask generator for painter:) I created this as a simple masking method compared to the built-in generators. Seems like most of them do too much or something too specific.
To use, simply add it too a mask as a generator. It will auto-plug in any maps baked out in painter, and will update if rebaked. It also has an additional normal map slot for passing in additional curvature info. Enjoy:)