Hey John,
Thanks a lot for your quick answer, that's actually what I found out while digging more into it, glad to see I got it the right way!
Also very nice to see the getattribute() function, I couldn't find something like that in the documentation and used a InInt instead pointing to the shading:index, though I didn't manage to get my custom "hairid" primvar this way, this really helps!
Is there anywhere I can find more information about those context variables like the shading one ? In the documentation about Context Vars I could find information about the scene context to get the current frame or path for example, as well as some but nothing related to this "shading:" one.
Anyway, thanks again for the help, I really appreciate it. Have a good one.
Lucas.