Blind a slider to an animation

Hi do you know how i can Blind a slider to an animation control ? like a 40 frames animation will be
0% → frame 0
50% → frame 20
100% → frame 40
So i can controle the animation like if a move a cursor to a timeline

Thx

Tricky to explain, but you need something like this i think.
I would create a blueprint with a skeletal mesh added (use the one that has your animation you want to control as a reference).
Then create a “custom event” in the event graph of that blueprint. Add a new input to the custom event. change it to float and give it a name. Drag a “set position” node off the exec pin. connect the “in pos” float to the custom event float input you added. set the target to your skeletal mesh.
Then check how long the animation is. You can do this by going to the animation asset and dragging the “initial position” untill the value will go no higher, make a note of this value.
Once you know this value add an “OnValueChanged” event drag the “value” pin and create a “floatfloat" node. In the “B” float type in the value you had from the “initial position” value you made a note of from the animation.
Drag the “OnValueChanged” exec pin and add a “get all actors of class” node. set the actor class the the blueprint you created initially. You might want to drag a “for each loop” out from the exec pin.
Then out of the loop body pin call your custom event you created.
Then connect the float variable from that to the “return value” of the "float
float” node you created earlier

Hopefully that helps. If i get some time i’ll try to add some graph images, but i’m away from my main machine right now.