# How to get Pose information of an AnimationSequence

**URL:** <https://forums.unrealengine.com/t/how-to-get-pose-information-of-an-animationsequence/444800>\
**Category:** Character & Animation\
**Tags:** pose, bone-transform, unreal-engine, question, Blueprint, CPP\
**Created:** [March 7, 2019, 10:10am UTC](https://forums.unrealengine.com/t/how-to-get-pose-information-of-an-animationsequence/444800 "2019-03-07T10:10:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinayaka\_P](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vinayaka\_P](https://forums.unrealengine.com/u/Vinayaka_P)\
**Post date:** [March 7, 2019, 10:10am UTC](https://forums.unrealengine.com/t/how-to-get-pose-information-of-an-animationsequence/444800/1 "2019-03-07T10:10:04Z")

</div>

Hi,

I want to save pose information i.e, the location of each bone of a skeletal mesh while it’s playing an animation sequence during runtime. About this I searched everywhere but not fruit. One way is to `Save PoseSnapshot` of an anim instance. And from the output Snapshot i can extract `LocalTransforms` which is completely inaccurate. LocalTransforms of each bone is off some random distance. I displayed local transforms on the screen along with the character as well as world location (fyi I used `TransformFromBoneSpace` function to convert transforms from local to world space) of each local transform in below images. Please check. LocalTransforms in SnapshotPose struct always contain some offset.

 ![270541-posedata-incorrect.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/5/415fbd1fcf121d2d2407d4e9d4bd91d95946a2e8.jpeg)

- How do I fix this?
- Is there any alternative to achieve  
this?
- Why the bone locations are _little extruded outwards_ from their original position?

---

<div class="post-metadata">

**Author:** ![Vinayaka\_P](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vinayaka\_P](https://forums.unrealengine.com/u/Vinayaka_P)\
**Post date:** [March 7, 2019, 10:11am UTC](https://forums.unrealengine.com/t/how-to-get-pose-information-of-an-animationsequence/444800/2 "2019-03-07T10:11:19Z")

</div>

fyi, in images above i didn’t use animations to keep things simple.

---

<div class="post-metadata">

**Author:** ![Vinayaka\_P](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vinayaka\_P](https://forums.unrealengine.com/u/Vinayaka_P)\
**Post date:** [March 8, 2019, 4:54am UTC](https://forums.unrealengine.com/t/how-to-get-pose-information-of-an-animationsequence/444800/3 "2019-03-08T04:54:43Z")

</div>

![270617-stefani-bones.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/d/bed4775437a25d4f186647d7f248d60232b3545e.jpeg)

I want this exact function in C++. Can someone help me finding this in engine source code?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_13399bb2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_13399bb2](https://forums.unrealengine.com/u/anonymous_user_13399bb2)\
**Post date:** [March 8, 2019, 10:55pm UTC](https://forums.unrealengine.com/t/how-to-get-pose-information-of-an-animationsequence/444800/4 "2019-03-08T22:55:55Z")

</div>

I haven’t tried this and don’t know if this is already built. The local transforms are likely going to be with respect to their parent bone. So for example to get the world transform of the hand you chain the transforms from the hand back to the root bone. This means multiplying the transforms in a chain from child to parent for any given bone you want the transform of in world coordinates.

---

<div class="post-metadata">

**Author:** ![Vinayaka\_P](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vinayaka\_P](https://forums.unrealengine.com/u/Vinayaka_P)\
**Post date:** [March 12, 2019, 4:26am UTC](https://forums.unrealengine.com/t/how-to-get-pose-information-of-an-animationsequence/444800/5 "2019-03-12T04:26:54Z")

</div>

Thanks bad-wulf for your response, your explaination makes sense.

GetSocketLocation given the name of socket/bone gives me perfect world location…
