Can I access the Material of an animated object via code?

I have an animated character I imported from Maya and am animating using Mecanim. Is there any way in code that I can get to the Material of that character? I want to be able to get/set values in the shader from my script, but I can’t seem to find a way to get a hold of the material.

I know that Mecanim has a way of animating a shader’s properties, but that isn’t what I’m looking for.

I’ve figured out the answer to my own question! So it turns out that there is a SkinnedMeshRenderer… only it’s attached further down the hierarchy of children of the GameObject I’m working on! It took me forever to stumble upon it. So it appears I’ll be able to access it that way just fine.