Creating keyframe poses with a plugin

I am currently creating a plugin used to make animations more efficiently with the Animation Editor. For example, I am adding a button which, on click, sets the CFrame of any selected part of the Rig to the current CFrame of the camera. One way to achieve this is by modifying the CFrame value of the animation which is stored in RBX_ANIMSAVES in ServerStorage. The main issue with this is that you have to close the animation editor, open it and load again the animation you were currently working on, and this is very prone to errors.

Since the Animation Editor stopped being a plugin and now it is an integrated tool in Roblox Studio, is there any way to create a keyframe pose programmatically?

To get the idea, here is a screenshot with notes of what I am trying to achieve:

Once you press the button, the selected part is placed in the current view position, and a new diamond icon is created. Anyone knows if this is possible?

1 Like