How do you set up Anisotropic Shader for only specific areas of a texture pattern?

Hello, I am trying to figure out how to set up Anisotropic Shader for only specific parts of my pattern. I have a pattern i am putting on a cylinder where half of the triangles are glossy painted and the other half are chrome (unpainted). I know how to make all of it chrome looking but how do I do it for only parts of the pattern?

Make a black and while version of your texture pattern (or run it through a RGB to BW converter node) and use it as the factor for a shader mix node between the anisotropic shader and your other shader.