Inertial Slider

Can this be saved inside a LUA script, so one could press a button and load this in? I’m trying to figure out how I could call the Formula Device with my usual “load native effect” or “load VST/AU effect” scriptage?

Here, have an upvote and a thanks.
I would love to, of course, understand it a bit more deeply as regards how the Formula Device can be hijacked to do actual LUA work.
Also, I’m totally vague on the aspect where the Formula Device could be used across multiple patterns, I can only see “LINE” and “LINEF” in ( What Is The Formula Device? )… the BEATS, TICK seem very complex to me.

Is there a way to print this kind of stuff in the LUA terminal to better be able to understand what kind of number crunching one would have to apply to use SEQPOS, BEATS or TICK, or TICKCOUNTER in a useful fashion?