Procedurally Generated Animation Curve

I would like to be able to generate animation curve based on the pose and code/blueprint if possible.


Perhaps something like plot a curve based on a particular bone rotation over time (so it can be queried in code/bp later on)
or Automatically generate foot plant on/off (0…1) curves based on foot height/velocity
or many many others

This curve could be generated by the user pushing some button or perhaps some other notification

Is there any way to do this?