UPDATE: Substance Painter now has an actual outline filter that does just this but simpler :)
Substance Painter AUTO Brush Stroke Outline