[OFS] LUA question

good evening fellows, i got a bit of a question about lua scripting for open fun scripter.

i don’t use funscripts in the traditional sense for every video, i have two tracks, the first may or may not be the l0 funscript but the secondary is linked to a websocket out that will trigger things, like when no funscript is present inject pattern, or drive other toys and functions. i use absolute positions and have a detection for 100ms to assure the signal is valid, then it processes it in noxy-red to do things.

to do so, i wanted to create a button interface in ofs so i can quickly breeze trough videos. a button will add 4 positions at once, a 0 to start before the actual frame, on the actual frame it sets the chosen position, it will advance again a little, set the same position again, and then it goes still further and sets a 0. hence we have a signal for longer than 100ms that i can pick then up and process further.

but it seams i can’t make this buttons work, here is the lua i tried:
main.lua.txt (2.4 KB)

if someone could give me some pointers what i do wrong or how to format the script correctly would be nice :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.