Set scalar parameter Value update during runtime

Hi all,

I’m trying to switch automatically from a texture to another using a lerp node inside the material.
Basically the Blueprint measure the distance between two bones, rescale the value of the vector lenght ( in order to be from 0 to 1 ), then use that value between 0 and 1 to drive the scalar parameter value. I’m also outputting onscreen the distance between the two bones.

As far as I can see if I update manually the “Value” under the Set scalar parameter node I’m able to visually see the texture switching/blending one with another.
but if I put as the input the distance between the two bones ( again, it goes from 0 to 1 ) the texture is not blending/switching at all during runtime…and honestly I don’t know why, since the output values looks ok.

It is not possible to update at runtime or ( probably ) I’m doing something wrong within the graph?

Nevermind, solved :slight_smile:

Hey Nicolas3D,

Glad to hear that you were able to come up with a solution for the issue. If it is possible, would you mind describing the process that you came up with to fix the problem, or provide a photo, so users in the future can reference this post.

Thanks and have a great day,

Sean

Hi Sean,

The main problem was that the “Set scalar parameter value” wasn’t updated each frame, so I disconnected “Event tick” from “Print string” and attached to the “Set scalar parameter value”, so its updated every frame.
Alternatively I found out that I could use a “Sequence” node in order to be able to share the “Event tick” between multiple nodes :slight_smile: