Baking single geometry in different states

This is very interesting indeed!
Now I am wondering how the C# code could be altered in order to create a new layer and bake, each time I move the slider.
I’m trying right now, rather unsuccessful though I must admit. I reckon it can’t be that complicated, right?

pretty easy to do with the human-plugin though…