Flipping an animation group?

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.

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.

1 Like

Thanks Evgeni, let me try.