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

11 Likes

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

4 Likes

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.

Very cool - I had this jank idea for a mount with using The Handy backwards (to get a better grip on the device by grabbing the opposite side) so maybe this will be helpful.

Sorry for replying to such an old thread but I’ve been wondering how to invert a script as I am new to using scripts. This action works perfectly in the custom tab. I’ve already tried it on a few scripts.

Thank you for posting this quick action to invert a script.

2 Likes