Creating 2d animations through script

In another game engine I created an animation system which used multiple sprites moved around to show the animation, similar to what unity can do. I would like to import my files into unity. I’ve imported other file formats I have created so that part is easy. What I need to do is record the animations I need to load.

I’ve been able to create animators and animation clips through code but I do not seem to be able to record the actions, which at this point has just been to move to small sprites in opposite directions.

Any help is appreciated.

I deleted the last post I made for this.

In this link

there is a project there where it can be ran. Here you can record any input you give the character, however anything that is done through script or in the inspector is not recorded.

Through script I simply have an object move. In the editor I just drag the object.

Is there some setting that would allow for all objects moved in anyway to be recorded?

Anything?