OpenFunscripter / OFS

A tool to create funscripts
GNU General Public License v3.0
84 stars 37 forks source link

Include chapters and bookmarks in lua api #88

Open Zalunda opened 1 year ago

Zalunda commented 1 year ago

I'm working on a plugin right now where I would like to be able to stop at the next bookmark and/or the end of the current chapter. Right now, I have to add a "fake point" to mark the end.

For my need, read-only access to chapters/bookmarks would be sufficient.

But I could also see an advantage if plugins could be able to add bookmarks. For example, the plugin could analyze a funscript and add bookmarks where it thinks the user should do something (kind of the plugin saying "I wasn't 100% sure what to do there, you should look at it").

On a side note, while debugging lua script, I often had errors in my script but I would only see the error when I disabled my plugin. Could the errors be written in the extension logs instead?