I have a pattern that I use to draw arbitrary-shaped curves like this:
To achieve that I create a layer filled with my pattern and a blank layer, then I "draw" my line erasing the second one. A brush would be much more practical to do that but obviously simply changing the pattern in a brush doesn't work (ignore the fact that it is a square and not circular):
Is there a way to create a brush that works as the two-layers solution?
Example pattern made with this image.