Thanks, but I'm afraid the article doesn't contain all answers to my question. Which I found out after additional research.
One needs to use GetComponent<MeshRenderer>().SetPropertyBlock(block, index), where index is the index of the material in the list of meshrenderer materials visible in unity inspector at runtime after assigning CustomSlotMaterials.