Change material asset in blueprints

Hey Guys,

just a quick question.

Is there a way to get from level1 the Material from a static mesh actor and apply this to a static mesh component in a blueprint?

(for example you are in a triggerbox and when you press “m” you change the material asset from like water to fire)

I have already set up the DMI so if i manually change the material asset it will be applied to the SMcomponent.

So if you guys know a way to achieve this i would really appreciate your help.