Script scaling tool

Anyone know if there an OFS script, or other app/tool that scales scripts by percentage? So if my script is 0 - 2 - 0 - 4 - 0. I can increase by 50%, so it becomes 0 - 3 - 0 - 6 - 0?

Seen the ones that will raise all top or bottom points by the same amount, but that’s not what I’m after.

You could use JavaScript in funscript.io’s custom modifier feature to do this. I don’t personally know the exact script you’d input, but it’d be similar to what @ZeroSixGamma did here but with value instead of “at”/timestamp for each point:
How to convert funscripts for wrong fps

2 Likes

Should be something like

actions => {
        return actions.map(action => ({...action, pos: action.pos * 1.5}));
    }

I think funscript.io automatically sanitises the value, i.e. if the input is 67 or more, it’ll cap the output at 100, but you should make sure it actually does.

2 Likes

Can confirm, funscript.io doesn’t apply values over 100.
Also, I realize I could’ve figured out to use “pos” by actually opening a funscript file in a text editor xD

2 Likes

Ok, so this is doing exactly what I asked for. Thankyou.
Lack of foresight on my part… is there a way to make it only affect the top points?

I literally made a tool but no one cares about it, since I never wrote a GUI to use it I guess…

@8ioni
Give me a script and ask me how much % you want me to scale it, and I’ll give you the result.

And I did write in a way to “only affect the top points” like you asked lol

2 Likes

Oh that looks interesting. There are clearly many clever people on this site. I am not one of them, but I will try it myself first since there are quite a few I’d like to adjust, including the one I’m currently working on.

I will probably be in touch :stuck_out_tongue:

1 Like