We use the free plugin saber.
It is possible to export mask information from the material and change it to various things.
Please refer to the tutorial video.