# How do set float from blueprint to Animation blueprint?

**URL:** <https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [May 11, 2017, 4:19pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891 "2017-05-11T16:19:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan3DIM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan3DIM](https://forums.unrealengine.com/u/Dan3DIM)\
**Post date:** [May 11, 2017, 4:19pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891/1 "2017-05-11T16:19:25Z")

</div>

I am pretty sure this had been answer before but I don’t know what “special word” to ask Google as it refuse to help me…

Hope you guys can. 🙂

How can I do set the float math from blueprint and get float to Animation blueprint to set alpha blend in animation node?

What I am trying doing? I want to press AIM input to toggle between weapon holster and weapon Aim.

Good example -

This pose is only head that look around…

![84c46fb76880eb6e8c06875cec1718f0362661b5.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

Blend into this

This pose is both head and rifle look around…

![2b2bbd6e120fe28d6711486acab3218aa0a1c1d8.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

And repeat from top.

Both have different AimOffset which that is why most equip weapon YouTube tutorial is fail.

My animation blueprint is work great. I’ve test ‘manual’ change number of alpha float and both way blend in work well.

This is what I need, press AIM button e.g gamepad input/keyboard input/ VR google input. All in one event node to toggle between those two picture.

---

<div class="post-metadata">

**Author:** ![cyaoeu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cyaoeu](https://forums.unrealengine.com/u/cyaoeu)\
**Post date:** [May 11, 2017, 6:32pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891/2 "2017-05-11T18:32:17Z")

</div>

Set a variable in your character BP and in the anim bp anim graph do Try Get Owner - Cast to yourcharacterBP and get the variable from there.

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [May 11, 2017, 6:42pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891/3 "2017-05-11T18:42:17Z")

</div>

AnimBP are designed to be very closed environment; you won’t be able to change values in it directly (unless using C++), you’re supposed to make your AnimBP “query” info from outside instead…  
So your AnimBP have to constantly read the value from your Blueprint instead of Blueprint sending the value to AnimBP directly.

---

<div class="post-metadata">

**Author:** ![Dan3DIM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan3DIM](https://forums.unrealengine.com/u/Dan3DIM)\
**Post date:** [May 11, 2017, 11:34pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891/4 "2017-05-11T23:34:58Z")

</div>

> [@BrUnO XaVIeR;707733](#):
>
> AnimBP are designed to be very closed environment; you won’t be able to change values in it directly (unless using C++), you’re supposed to make your AnimBP “query” info from outside instead…  
> So your AnimBP have to constantly read the value from your Blueprint instead of Blueprint sending the value to AnimBP directly.

> [@cyaoeu;707725](#):
>
> Set a variable in your character BP and in the anim bp anim graph do Try Get Owner - Cast to yourcharacterBP and get the variable from there.

I got you! Other way around ugh… I better get back on it tomorrow. Should be work 🙂 I’ll let you both know if I got it solve. 😉

---

<div class="post-metadata">

**Author:** ![Dan3DIM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan3DIM](https://forums.unrealengine.com/u/Dan3DIM)\
**Post date:** [May 12, 2017, 1:42pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891/5 "2017-05-12T13:42:41Z")

</div>

![giphy.gif](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/a/aa4401a3a1e9189ecf674b85e0c572c269615ead.gif)

Yes it working! but snap animation… I need learn how to “slowing count up/down” math for switch between 0/1… I think its Delta node…

---

<div class="post-metadata">

**Author:** ![cyaoeu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cyaoeu](https://forums.unrealengine.com/u/cyaoeu)\
**Post date:** [May 12, 2017, 4:03pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891/6 "2017-05-12T16:03:07Z")

</div>

> [@Dan3DIM;708116](#):
>
> ![giphy.gif](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/a/aa4401a3a1e9189ecf674b85e0c572c269615ead.gif)
> 
> Yes it working! but snap animation… I need learn how to “slowing count up/down” math for switch between 0/1… I think its Delta node…

There’s also FinterpTo.

---

<div class="post-metadata">

**Author:** ![Dan3DIM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan3DIM](https://forums.unrealengine.com/u/Dan3DIM)\
**Post date:** [May 18, 2017, 4:14pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891/7 "2017-05-18T16:14:57Z")

</div>

Fail… maybe it’s me.

Finterp To  
Finterp ease in out  
And other ease node… How do it right?

I’ve try it all and don’t got it work 😕  
What have I done wrong with curve math for smooth switch between 0 to 1?

---

<div class="post-metadata">

**Author:** ![cyaoeu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cyaoeu](https://forums.unrealengine.com/u/cyaoeu)\
**Post date:** [May 18, 2017, 4:59pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891/8 "2017-05-18T16:59:35Z")

</div>

Well you didn’t post your BP so we have no idea.

---

<div class="post-metadata">

**Author:** ![Dan3DIM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan3DIM](https://forums.unrealengine.com/u/Dan3DIM)\
**Post date:** [June 8, 2017, 1:10pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891/9 "2017-06-08T13:10:35Z")

</div>

> [@cyaoeu;710806](#):
>
> Well you didn’t post your BP so we have no idea.

I know you all don’t want to heard why I delay or my delay tactic… Most of my freetime roam on web is on smartphone…

[spoiler]Here you go! Finally got on PC and time for internet…  
In Player Blueprint… set a Float math.  
 ![4b1f23f4d3c1331b4e5d528afc86c625d6aefa2b.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

In Animation Blueprint, apply blend…

 ![Capture_zpsrlxrfcst.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/2/b285fe9a2fa0e968b352c4f972def4a3f0dec3b9.jpeg)[/spoiler]

---

<div class="post-metadata">

**Author:** ![Dan3DIM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan3DIM](https://forums.unrealengine.com/u/Dan3DIM)\
**Post date:** [June 14, 2017, 9:07pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891/10 "2017-06-14T21:07:07Z")

</div>

hint - there are blueprint in ‘spoiler’

still haven’t solve Finterp in 4.15… hope 4.16 can fix this.

---

<div class="post-metadata">

**Author:** ![Reahreic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/reahreic/32/911691_2.png) [@Reahreic](https://forums.unrealengine.com/u/Reahreic)\
**Post date:** [February 25, 2026, 2:39pm UTC](https://forums.unrealengine.com/t/how-do-set-float-from-blueprint-to-animation-blueprint/91891/11 "2026-02-25T14:39:07Z")

</div>

> @BrUnO_XaVIeR  
> AnimBP are designed to be very closed environment; you won’t be able to change values in it directly (unless using C++), you’re supposed to make your AnimBP “query” info from outside instead…  
> So your AnimBP have to constantly read the value from your Blueprint instead of Blueprint sending the value to AnimBP directly.

Ugh, this seems like it would be a resource hog!

Use Case  
I have a cockpit made up of 100 interactive components, each with their own state data. (Many components have more than one bone) Does that mean each of the 100 skeletal mesh instances are going to poll their state data from the owning actors blueprint every frame just to see if the bones should be `Transform (Modify) Bone` by a specific rotation?

I’d much rather just push the current state once via an event.

Would it work if I were to create a C++ base class that the BP switch templates inherited from?
