SkinnedMeshRenderer - Setting the texture of specific element?

I’m attempting to change the texture of my player model but I can’t seem to access the element I need. Anyone know how this is done?

Here is a snippet. There is no error but it’s not working either:

SkinnedMeshRenderer smr = transform.FindChild("playerModel").GetComponent<SkinnedMeshRenderer>();

Texture2D texture = (Texture2D)Resources.Load ("Armor Textures/" + textureName);

smr.material.SetTexture (7,texture); //not working...

Nevermind. I figured it out. I always seem to figure it out right after I give up lol

smr.materials[7].mainTexture = texture;