# How to rotate bone in an animation sequence?

**URL:** <https://forums.unrealengine.com/t/how-to-rotate-bone-in-an-animation-sequence/420428>\
**Category:** Character & Animation\
**Tags:** unreal-engine, bone-rotation, question, CPP\
**Created:** [March 21, 2018, 7:59am UTC](https://forums.unrealengine.com/t/how-to-rotate-bone-in-an-animation-sequence/420428 "2018-03-21T07:59:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VinayakP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VinayakP](https://forums.unrealengine.com/u/VinayakP)\
**Post date:** [March 21, 2018, 7:59am UTC](https://forums.unrealengine.com/t/how-to-rotate-bone-in-an-animation-sequence/420428/1 "2018-03-21T07:59:41Z")

</div>

Hello community,

How to actually rotate a bone (say **Head** ) while a character (derived from ACharacter) is playing an AnimSequence (say **Walking** )? I’m looking for methods that actually **set transform** for a bone in an existing **AnimSequence** (downloaded from **[mixamo.com](http://mixamo.com)**) for all frames OR at particular time/frame.

1. **[Bone transform at certain time/key](https://answers.unrealengine.com/questions/349862/bone-transform-at-certain-timekey.html)** deal with how to  
access bone transform.
2. **[How to rotate a bone in C++](https://answers.unrealengine.com/questions/47930/how-to-rotate-bone-in-c.html)** makes use of blueprint which I don’t prefer because I’ve large number of animations and characters to play with.

Please let me know if there are any such methods/APIs available? Also let me know if is this anything to do with **writing RawAnimationData** to the AnimSequence in hand?

**UPDATE:**  
While searching for solution I found this: **[UAnimSequence::AddKeyToSequence](http://api.unrealengine.com/INT/API/Runtime/Engine/Animation/UAnimSequence/AddKeyToSequence/)**. Please tell me, does this really serve the purpose, if so how to use this?

---

<div class="post-metadata">

**Author:** ![VinayakP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VinayakP](https://forums.unrealengine.com/u/VinayakP)\
**Post date:** [March 28, 2018, 12:38pm UTC](https://forums.unrealengine.com/t/how-to-rotate-bone-in-an-animation-sequence/420428/2 "2018-03-28T12:38:46Z")

</div>

**UAnimSequence::AddKeyToSequence()** does really serve the purpose. After calling this method, I’ve to just call **UAnimSequence::BakeTrackCurvesToRawAnimation()**. This transformed the desired bone at supplied point in time.

Thank you

---

<div class="post-metadata">

**Author:** ![Luguen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luguen](https://forums.unrealengine.com/u/Luguen)\
**Post date:** [April 21, 2021, 7:36am UTC](https://forums.unrealengine.com/t/how-to-rotate-bone-in-an-animation-sequence/420428/3 "2021-04-21T07:36:11Z")

</div>

Hello,

**AddKeyToSequence()** & **BakeTrackCurvesToRawAnimation()** are Editor-only methods… Any other way to do that ?

Thanx

---

<div class="post-metadata">

**Author:** ![Teodor\_Nikolov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Teodor\_Nikolov](https://forums.unrealengine.com/u/Teodor_Nikolov)\
**Post date:** [October 6, 2022, 9:42am UTC](https://forums.unrealengine.com/t/how-to-rotate-bone-in-an-animation-sequence/420428/4 "2022-10-06T09:42:14Z")

</div>

Hey, do you happen to find an answer to this question, or what a better approach might be?
