# Play Animations using DataTable

**URL:** <https://forums.unrealengine.com/t/play-animations-using-datatable/471220>\
**Category:** Character & Animation\
**Tags:** datatable, unreal-engine, question\
**Created:** [September 12, 2020, 3:28am UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220 "2020-09-12T03:28:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![commandos-cro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@commandos-cro](https://forums.unrealengine.com/u/commandos-cro)\
**Post date:** [September 12, 2020, 3:28am UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220/1 "2020-09-12T03:28:28Z")

</div>

I have arms mesh for the player and 2 guns each of which has its Animation Blueprint and pair of animations for a weapon such as fire, reload, etc. And heads mesh has separate animations for each weapon, e.g. idle animation.  
I have a Data table filled with all animations for the player and another table filled with animations for a weapon.  
How can I read animations from DataTable and play it as animations for proper gun and arms?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![IM\_Molvi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IM\_Molvi](https://forums.unrealengine.com/u/IM_Molvi)\
**Post date:** [October 5, 2022, 9:49pm UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220/2 "2022-10-05T21:49:41Z")

</div>

Hi. Sorry if it is a dumb question. I’m new to unreal engine. How did you store animation in the datatable? Can’t seem to find the right datatypes etc. Thanks.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 5, 2022, 9:53pm UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220/3 "2022-10-05T21:53:17Z")

</div>

Why not make a data table of structs that would contain the correct combination of arms and weapon animations?

---

<div class="post-metadata">

**Author:** ![Thewasta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thewasta](https://forums.unrealengine.com/u/Thewasta)\
**Post date:** [October 8, 2022, 11:46pm UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220/4 "2022-10-08T23:46:31Z")

</div>

How to do it? Do you mind to share any post?

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 9, 2022, 10:03pm UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220/5 "2022-10-09T22:03:09Z")

</div>

![0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/1/861161ca0e8a4017a4dc72d83096aa191a1d3ab3.png)

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/4/b04017524d5e7a3e177a4fc02358c86861f3c98f.png)  
 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/b/91b4ac43088779e258902b6031e3375a7ccc8e3f.png)  
 ![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/9/0993665cfac26cee420682de6572e73ff6cf2248.png)  
 ![4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/f/6df90752cdd4af5b323c3a8bf7a27a22c896c81e.png)

---

<div class="post-metadata">

**Author:** ![Thewasta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thewasta](https://forums.unrealengine.com/u/Thewasta)\
**Post date:** [October 11, 2022, 1:31pm UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220/6 "2022-10-11T13:31:53Z")

</div>

I though, you (3dRaven) meant to use data table in Anim BP. Maybe it’s possible but I have no clue to do it.

With your example/screenshot you are using the animation from DataTable in _Character BP_, right? For example; reload animation:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/c/72c9cf408acf428e18de5806fcbeafe4c8f59c46.png)

For now I don’t see a way to use DataTable in AnimBP and i’m working on this; from enum get the weapon and use a BlendSpace/Pose:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/7/3678eb169e9c11efab9c68d12317c6553095bee3.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 11, 2022, 1:55pm UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220/7 "2022-10-11T13:55:05Z")

</div>

You can use the data table in the anim bp. Just add a variable of type DataTable =\> compile =\> select the new variable and select the created animation Data Table

Or you can just inject it with a node like this

 ![dt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/5/1659f5924b6e9bdaea746a7efe85ad2b5ca874d5.png)

---

<div class="post-metadata">

**Author:** ![Thewasta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thewasta](https://forums.unrealengine.com/u/Thewasta)\
**Post date:** [October 11, 2022, 2:37pm UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220/8 "2022-10-11T14:37:04Z")

</div>

And after break data? I have ‘animation sequence’ can’t link it to final result or state machine, etc

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/a/78ab8dabcb187c3890f3b4ecd40251a3ae34d510.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 11, 2022, 2:39pm UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220/9 "2022-10-11T14:39:36Z")

</div>

What is set in the anim part of the struct? is it an anim sequence?

---

<div class="post-metadata">

**Author:** ![Thewasta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thewasta](https://forums.unrealengine.com/u/Thewasta)\
**Post date:** [October 11, 2022, 2:42pm UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220/10 "2022-10-11T14:42:16Z")

</div>

Yes, anim sequence

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [October 11, 2022, 2:45pm UTC](https://forums.unrealengine.com/t/play-animations-using-datatable/471220/11 "2022-10-11T14:45:58Z")

</div>

Insert Sequence Player =\> Select it =\> Bind =\> Expose as pin. You can now hook up “Anim Sequence Base” to the player.

 ![connect](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/6/43616969dafb51562c9a6200e8c5538646500bf6.png)
