Get material scalar parameter from a skeletal mesh while the bluprint is a component

Hello there!
I want to use a blueprint as a component of a skeletal mesh actor. This blueprint is for making an outline without post process. In this blueprint, I would like to get a specific scalar parameter from the skeletal mesh’s material. I would like to set this parameter to the same in another material. But because it is a component, I can’t get the skeletal actor and set as target in the get material or the create material instance box. The goal would be working without ‘fixed’ materials and meshes but If add a component to any skeletal mesh then do the same.
(The basic problem: the outline blueprint coping the mesh and flip inside out, assign a black material so it is a ‘mobile compatible’ outline. But if I would like to animate the original mesh’s material alpha parameter, the outline won’t fading out…)
Thx!

You just need to get the material from the index, cast it to DynamicMaterialInstance and call Get(Scalar/Vector/Texture)ParameterValue and provide it with a name of a parameter.

You don’t need actor reference, you just need to get the material first and skeletal mesh component is able to provide it to you.

Thx, for the fast reaction, but can you show me any blueprint example pls? I tried many ways, but none of the was success…Okay, I am a very beginner, but still…

You can call the GetMaterial function on any UPrimitiveComponent instance and derived classes.

The blueprint I made this in is created from USkeletalMeshComponent