Way to bake ID colors to texture

How do you guys approach this? When I export my model to 3Dcoat or Substance Painter, it would be helpful to have an ID map. Currently, I mask and fill and bake.