# Is there any way to get bool variables from an Animation Blueprint to a Character Blueprint?

**URL:** <https://forums.unrealengine.com/t/is-there-any-way-to-get-bool-variables-from-an-animation-blueprint-to-a-character-blueprint/452474>\
**Category:** Character & Animation\
**Tags:** bool, add-variable, unreal-engine, UE4, Blueprint, question\
**Created:** [July 18, 2019, 3:32pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-get-bool-variables-from-an-animation-blueprint-to-a-character-blueprint/452474 "2019-07-18T15:32:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KEJRAK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KEJRAK](https://forums.unrealengine.com/u/KEJRAK)\
**Post date:** [July 18, 2019, 3:32pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-get-bool-variables-from-an-animation-blueprint-to-a-character-blueprint/452474/1 "2019-07-18T15:32:54Z")

</div>

Good day, developers,   
  
I need to get my bool variables (“IsLadder, IsClimbing”) from an Animation Blueprint to my Character Blueprint. I tried “Cast to” but it didn’t work out. Will you help me to achieve that?

Thank you for your answers.  
282736-

 ![282737-charbp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/1/831d10398ff12f58eef01f0a0571425362eca6a7.png)

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [July 18, 2019, 11:27pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-get-bool-variables-from-an-animation-blueprint-to-a-character-blueprint/452474/2 "2019-07-18T23:27:43Z")

</div>

Yes, Animation Blueprint is normal class that create normal object like any other and you can access it as anything else. Animation Blueprint is Blueprint of animation instance, so you can get it using this node:

> **[Get Anim Instance](https://docs.unrealengine.com/5.1/en-US/BlueprintAPI/Components/SkeletalMesh/GetAnimInstance/)**
>
> Get Anim Instance

Then cast it to the class of your animation blueprint and then you can access functions and properties in your animation blueprint

---

<div class="post-metadata">

**Author:** ![KEJRAK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KEJRAK](https://forums.unrealengine.com/u/KEJRAK)\
**Post date:** [July 19, 2019, 5:44am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-get-bool-variables-from-an-animation-blueprint-to-a-character-blueprint/452474/3 "2019-07-19T05:44:03Z")

</div>

Thank you for the answer, but I have tried it with “Get Anim instance” before, without success. Do you mean like that? It is in “Cast Failed” mode.

 ![282796-castfailed.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/6/3f65c86f3bc41aa29b28616843f4a06ab081ebd0.png)

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [July 19, 2019, 6:05am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-get-bool-variables-from-an-animation-blueprint-to-a-character-blueprint/452474/4 "2019-07-19T06:05:46Z")

</div>

You sure that you set proper animation instance/blueprint class on it?

---

<div class="post-metadata">

**Author:** ![KEJRAK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KEJRAK](https://forums.unrealengine.com/u/KEJRAK)\
**Post date:** [July 19, 2019, 6:15am UTC](https://forums.unrealengine.com/t/is-there-any-way-to-get-bool-variables-from-an-animation-blueprint-to-a-character-blueprint/452474/5 "2019-07-19T06:15:16Z")

</div>

Definetly, I also used my anim class in that mesh variable, still “Cast failed”.
