How do I set scalar parameters in blueprint?

I’ve been having trouble with setting the scalar parameters to a random value in my blueprint. Everything compiles fine, and if I create a material instance and set the parameter manually it works fine, but if I try to do it through a blueprint nothing happens and it stays on the default value when I bring the blueprint into the world. This is my construction script

http://postimg.org/image/5hwglpw0d/full/

And this is my material

http://http://postimg.org/image/9px9o3d73/full/

What am I doing wrong? Thanks in advance

I think something broke when I uploaded the images, here they are

Easy, you right click on the material and create a material instance of it. Then you assign/place the material instance in the spot for the material.

You can then open the material instance to edit your visible parameters in realtime

The problem is you are setting a collection parameter in construction script while using a normal parameter in the material, and you arent specifying which mesh should use the created material instance. Get the variable of your mesh, drag from the variable and then Create Dynamic Material Instance.Then drag the blue pin of the Create Dynamic MaterialInstance node and then search for Set Scalar Parameter. You should have a different node than the one you have. Enter the name of your parameter and plug your random value, and thats it. Here’s a screenshot:

72400-matinst.jpg

Here the only difference is i’m setting a vector parameter.

1 Like

Thanks heaps for the fast reply I’ll fix it today, Happy new year!

Still getting the same result. I get the feeling the blueprint is having trouble accessing my parameter.
EDIT: Disregard this, I had a brain fart. Cheers