How to invert a script using funscript.io

I found some inverted scripts on this site and just want to share how to invert them back to normal mode using funscript.io.

Choose Modify script, then Custom and upload a script to modify. Paste this code into the Run Custom Function box:

actions => {
    //inverts all actions
    return actions.map(action => ({...action, pos: 100 - action.pos}));
}

Click Apply Custom Function and save the script.

image

1 Like

Ooh glad to see the custom function is getting some use!

You could also do this with the remapper by setting min to 100 and max to 0 :smiley:

image

1 Like

Thanks, didn’t realize this was possible. That is an easier solution.

Thanks, I’ve been looking for this simple method to go the other way and invert a regular funscript for vibrator use.