Hi! It’s said in the documentation.
https://docs.blender.org/manual/en/latest/render/shader_nodes/osl.html
Some object, particle and mesh attributes are available to the built-in
getattribute()
function. UV maps and vertex colors can be retrieved using their name.
But getattribute(“Col”,color_variable) do nothing. How to get the vertex color in OSL?