does VertexAttribPointer operate on the bound VAO only or does it work globally

Title.

E.g.
if I bind a VAO and then call vertexattribpointer, if I bind a different vao will the vertexattribpointer specifier still be used for other VAOs

[QUOTE=Geklmin;1291254]
if I bind a VAO and then call vertexattribpointer, if I bind a different vao will the vertexattribpointer specifier still be used for other VAOs[/QUOTE]
All state related to attribute arrays is stored in VAOs. glVertexAttribPointer() changes the state of the current VAO. Binding a different VAO will use the state stored in that VAO.

Thank you. I am using the same vertex attribute number to store a vec3 in some VAOs and a mat4 in another