Ok, so I'm new to blender and have looked all over the internet, and blender is not working as expected (and all the usual that seems to be the required greeting on this site...)
I can use masks created in the movie clip editor (or the UV/Image editor) in the compositor to combine elements.
How can I use masks to combine shaders and textures?
I could render the mask as an image sequence ,and plug the images as a texture in the material editor. But then every new adjustment that has to be made in the mask means that the sequence has to be re-rendered. Not the best workflow. Masks being vectors have so many advantages over pixel based files, on top of that it is easy to rotoscope using tracking tools, also they are quite easy to animate and allow fine control when it comes to feathering.
Is there some python amazing script, animation node, add-on, or secret menu for the initiated that allows the mask information to be used interactively on the material editor?