# Flipping an animation group?

**URL:** <https://forum.babylonjs.com/t/flipping-an-animation-group/53513>\
**Category:** Questions\
**Tags:** animation\
**Created:** [September 17, 2024, 8:12am UTC](https://forum.babylonjs.com/t/flipping-an-animation-group/53513 "2024-09-17T08:12:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antony](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/antony/32/34501_2.png) [@Antony](https://forum.babylonjs.com/u/Antony)\
**Post date:** [September 17, 2024, 8:12am UTC](https://forum.babylonjs.com/t/flipping-an-animation-group/53513/1 "2024-09-17T08:12:15Z")

</div>

Hi all,

I have an animation group that contains animations for scaling/translating/rotating bones of a character, how do I modify the animation data such that the resulting animation is flipped horizontally? I know I can simply flip the character root mesh, but I want the character to keep its current appearance, just modify the animation group, is it even possible? Thank you.

Antony.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [September 17, 2024, 3:44pm UTC](https://forum.babylonjs.com/t/flipping-an-animation-group/53513/2 "2024-09-17T15:44:55Z")

</div>

You can retrieve the data (positions, quaternions, scales) of an animation group by looping over the `animationGroup.targetedAnimations` array. `animationGroup.targetedAnimations[X].animation` will let you retrieve the data for position/scaling/rotation, depending on the value of `animationGroup.targetedAnimations[X].animation.targetProperty`. The data for each frame can be found in the `keys` array.

---

<div class="post-metadata">

**Author:** ![Antony](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/antony/32/34501_2.png) [@Antony](https://forum.babylonjs.com/u/Antony)\
**Post date:** [September 19, 2024, 12:36am UTC](https://forum.babylonjs.com/t/flipping-an-animation-group/53513/3 "2024-09-19T00:36:21Z")

</div>

Thanks Evgeni, let me try.
