How do I get my values from a slider on a widget bp to a animation bp?

I have these sliders I wanna put there values into my animations bp but when ever I try to transfer them they become 0 and wont change. Even putting a set or function nodes to it will make it 0. I am new so if you could be simple for my sake I would be grateful. Oh and I have tried sending them to my character bp and then into my animation but like I said if I plug those sliders input event change on values to variable or functions that give to another node that transfers its always 0…

2 Likes

Oh and the sliders work and even give numbers with print string but soon as I even plug in a set variable it gives 0 for some reason in the same blueprint

3 Likes

could you provide the code? it’s make us better to understand your logic and your implementation.

2 Likes

trying to think where to begin, I tried lots of stuff so now I’m trying to figure out what picture I should send of my nodes. But what I’m really having issue wish is getting my sliders values to transfer.

2 Likes

this one is on my widget bp

2 Likes

this one is my animation bp

2 Likes

also tried the cast to stuff but couldn’t get that to work either. Even when casting to the character and into the animations after

2 Likes

For transfering data, it’s better to use Cast/Interface. If you said that the cast doesn’t work, do you already put the target to cast?

For your current transfer, it won’t work. Here is your situation. The event is on ABP, and you call it from the widget without giving the right target.

As you can see on the node itself, Body Scaling, Target is Scale Sliders


By that, what Unreal trying to do is executing “Body Scaling” on Scale Sliders (it just like executing an event that doesn’t exist in itself), which is not what you want.

If you want to try, give the right target, in your case, your ABP. Idk will it work or not since I’m not mainly a blueprint user. Idk can you transfer data use normal event like that, the things that I know is Cast or Interface will work if you handle it correctly.

1 Like

yeah I did a cast to node but I delete it after it didn’t work I believe it was getting variables from my character bp and I was setting those variables with the floats but after the set variable float it would be 0. I would show I pic but I forgot how I did it

1 Like


pretty much it was this but with out the make vector and body scaling and instead 3 variables I got from the character bp. I was trying to set them with the 3 sliders. But after the set nodes it was always 0. Also tried using a vector instead and still no luck

1 Like

great news I got a variant into my anim bp that is affected by my slider. Finally… anyway It doesn’t seem to save the numbers from the slider though. Like I have 3 sliders x y z sliders. When I move one the others goes back to 0. I’ll take pics of what I have.

1 Like

1 Like

The whole thing could / should be done with an Event Dispatcher, so you bind only once rather than call the interface function / cast every time we move the slider. For the sliders themselves:

1 Like

I’m kinda new how do I do that? And when I say that I mean I really need details because I’m not great with coding…

I tried to do the dispatch thing could have did it wrong but what I did was make a dispatch for my Widget BP that binds to my animations bp and connected the event box thingy with another dispatch thing I made in animation bp but now its back to being 0x0y0z

  • where do you create the widget?
  • is the character you’re linking to possessed?

The widget is being created with the level bp and there is no player if thats what your asking?

Where is the character you’re using then?

I have a actor sitting in front of a camera