How to script in OpenFunScripter - video tutorial

Well, I made these 2 lua scripts back in the day, but not sure if it works with the newest 2.0 version of OFS (works with 1.4.4 and below for sure):

You can assign a shortcut to both scripts and quickly move selected part of the script.

1 Like

So I saw this and thought “Great! Maybe I´ll be able to script some of my own stuff every now and then! Can´t be too hard, manual, or tedious, right?” [goes to watch video of part 2] …A few moments laterrr… "Well… i guess I´ll just leave it to the professionals then… " :frowning:

I think the easiest way to learn scripting is to load the script that already exists into OFS, play it a bit and see how the points are working. It’s super simple in fact, the tutorial might be overwhelming because it goes into details of 4 different methods of scripting and most functions of OFS. I honestly think watching from 8:35-17:01 (~9 mins) should be enough to start.

I’ve made 4 scripts with the help or the tutorial and I only started maybe 2 weeks ago, it’s really quite simple. I do it frame by frame which takes the longest, but is pretty simple. Load your video into OpenFunscripter, then scroll through the frames with the arrow keys, and press whichever number key you think best suits the moment, or use the simulator if you wanna be super accurate. Just don’t over do it or the script comes out a bit jumpy. Try stick to top and bottom points unless its quite a slow section and i’m sure whatever you make will be fine

1 Like

Is there instructions on how to use new Bookmarks and Chapters functionality anywhere? I can’t make head or tail of how to use them since upgrading to OFS v3.2.0.

Short description of chapters and bookmarks

Right click in the grey area with the diamonds in the picture and you a popup menu will appear. The diamonds are bookmarks I’ve already added.
bild

There you can either add a chapter or a bookmark:
bild

If you select a bookmark then you can name it in the popup after right clicking on the diamond:
bild

If you select add chapter you get a first placeholder for the new chapter:
bild

Click on the next bookmark or just move to somewhere in the video using the progress bar above the bookmarks:
bild

Right click on the green chapter placeholder and select set size. You can also change color and set/rename the chapter in the same popup menu.
bild

The result should be that the chapter is extended to where you are in the video right now:
bild

You can open up a chapter window if you want using the Chapters option in the View menu:
bild

The chapters window opens up. Here you can also rename the chapter by clicking in the large blue box. The little blue vertical bar to the far right will delete the chapter if you click it. If you click the colored box you can change the color of the chapter.
bild

A final word of caution. Managing bookmarks/chapters isn’t part of undo/redo history so changes can’t be undone if you make a mistake.

Hope this helps.

5 Likes

Thanks. That helped. I did get some of that info on another forum since I asked but should be useful for others. It can be a bit fiddly adding chapters I found… but works if you are careful… also haven’t tested if the chapters/bookmarks actually “saved” somewhere yet. Will try opening in MFP and see if that can see them.

I click on the update waveform button but nothing happens. What should I do?

Sometimes it can take a while. Check if it’s still processing when you try to update it again.

So, I am trying to create scripts without any video tied to them. I can’t seem to figure out how to create a project with no video file attached, and if I try and start creating points, it’s limited to 1 second. The project tab at the top is greyed out. Any advice?

not sure if this is possible. but you can take any long video and make a script not based on actions

yah what they say verry true, already some templates around here just need to search a little

But if I only want the script to last a few seconds, as a repeating template, then the video I use would also have to just be a few seconds long to avoid a bunch of empty space yeah?

New to this. Is there a way for me to set 100 or 0 as the default values on a controller? Right now, it seems to be 50. I want it to function like this. That way, whenever I stop pressing the joystick, it returns to 100. Would make things a lot easier for me.

Is there an easy way to remove or add dead time on a script?

Like if I have a script that doesn’t sync to a different version of a video and I want to take off a minute of no action on the front to sync up with a remastered or other version, how would I go about doing that?

Error-Screenshot 2023-12-20 201854
I keep on getting this error when I try to use motion tracking on a video, is there a way to fix this?

Motion tracker stops at existing point by default you have the uncheck the option to get it to overwrite existing points

Sorry this was asked long ago. I just select the entire script (ctrl+A), cut (ctrl+X) then find the position where the script should start and paste (ctrl+V).

What happens if there’s no numpad on your keyboard to insert points?

Remap the keys to other keys or buy a standalone numpad and connect it to your computer.