Set materials for Skeletal meshes through blueprints?

I currently have a Material Instance Array for team colors, since right now I am using Static Meshes to represent actors in game. In the future I may wish to change it to use a custom skeletal mesh model instead so it can have animations. I’m wondering if I am able to convert the code for this array for this to work with changing a material to something else depending on custom events, or if I should make different colored variations outside of engine and change them to fit the main color instead.