Implement Substance Painter features in Blender

I have seen many substance painter videos on YouTube and I’m totally impressed with how much artistic freedom that software gives when it comes to texture painting.
I use Blender even for texture painting knowing fully well that it’s nowhere near Substance Painter. I use Blender because I can’t afford Substance Painter. I have seen that some Substance features like masking and layers for instance can be implemented in Blender (a workaround but same result). And it’s been very helpful.

Now I want to know if I can implement Filter (on mask and layer) that Substance Painter offers in Blender. Can I implement masking by colour ID in Blender?