Any way to flip an animation during runtime?

Would there potentially be a way to play a flipped version of an animation in-game, without making a flipped version beforehand? What I mean by this is like using “flip pose” or “mirror pose” in blender, where it flips an animation to the other side of the character, so whatever the right arm was doing, the left arm is now doing it instead. I assume this is probably really really complicated and difficult, I already tried something where I played an animation on a dummy and then tried to just set the transform of the player, but that didn’t work. I just wanted to see if anyone else had any ideas or perhaps an even simpler way.

1 Like

The only way this could be possible is by editing the keyframes. Using KeyframeSequenceProvider, you can use GetKeyframeSequenceAsync to fetch all the keyframes, replace the instance of Left with right, invert all the orientations along the yz plane, and then reupload the result using RegisterActiveKeyframeSequence. Keep in mind, that this won’t work if you try to upload animations while players are testing. Even uploading the animations through the console during studio will only make temporary animations. I would recommend writing something up that will run in the console or potentially making a plugin to do this in Studio that will save the KeyFrames to a folder or something for you to manually upload permanently.

2 Likes