You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/app/docs/user-guide/ofs-integration.md
+32-9Lines changed: 32 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,37 @@ Currently we use a hacky lua script to communicate between the Python Funscript
4
4
5
5
## Installation (Windows)
6
6
7
-
1. Download the latest packed Python Funscript Editor from [github release page](https://github.com/michael-mueller-git/Python-Funscript-Editor/releases).
7
+
1. Download the **latest** packed Python Funscript Editor from [github release page](https://github.com/michael-mueller-git/Python-Funscript-Editor/releases).
8
8
2. Extract the Archiv.
9
-
3. Copy the `funscript_generator.lua` script ([`Repository/contrib/OpenFunscripter`](https://github.com/michael-mueller-git/Python-Funscript-Editor/tree/main/contrib/OpenFunscripter)) to `data/lua` in your OFS directory.
10
-
4. Open the `funscript_generator.lua` file and adjust the `Settings.FunscriptGenerator` and `Settings.TmpFile` variable.
11
-
- NOTE: Since release `v0.0.4` you should use `/` instead of `\\` for the path.
12
-
-`Settings.FunscriptGenerator`: Point to the extracted Python Funscript Editor program.
9
+
3. Download the **latest**`funscript_generator.lua` script from [github release page](https://github.com/michael-mueller-git/Python-Funscript-Editor/releases).
10
+
4. Move the downloaded `funscript_generator.lua` script to `data/lua` in your OFS directory.
11
+
5. Open the `funscript_generator.lua` file and adjust the `Settings.FunscriptGenerator` and `Settings.TmpFile` variable.
12
+
-**NOTE:** You have to use use `/` or `\\` for the `\` symbols in your path!
13
+
-`Settings.FunscriptGenerator`: Point to the extracted Python Funscript Editor program (better double check the complete path string to avoid errors later on).
13
14
-`Settings.TmpFile`: Specifies a temporary file location where to store the result (must be a file not a directory!). The file does not have to exist at the moment. The specified file will be generated from the Python Funscript Editor and will be overwritten automatically at the next time the generator is started!
14
-
5. Now launch OFS.
15
-
6. Navigate to `View : Special functions : Custom Functions` and select the `funscript_generator.lua` entry. Click the Button `Bind Script` (This may trigger the funscript generator, just ignore it for now).
16
-
7. Navigate to `Options : Keys : Dynamic` and insert a shortcut for the funscript generator.
17
-
8. Now you can use the shortcut at any position in the video to start the funscript generator.
15
+
6. Now launch OFS.
16
+
7. Navigate to `View : Special functions : Custom Functions` and select the `funscript_generator.lua` entry. Click the Button `Bind Script` (This may trigger the funscript generator, just ignore it for now).
17
+
8. Navigate to `Options : Keys : Dynamic` and insert a shortcut for the funscript generator.
18
+
9. Now you can use the shortcut at any position in the video to start the funscript generator.
19
+
20
+
## Troubleshot
21
+
22
+
### After setting the min and max value after tracking no points are inserted in OFS
23
+
24
+
If the points are missing in OFS then most likely the variable `Settings.TmpFile` in the `funscript_generator.lua` script is set incorrectly.
25
+
26
+
### Noting happens when i press the Shortcut for the Funscript Generator
27
+
28
+
In most cases, the variable `Settings.FunscriptGenerator` in the `funscript_generator.lua` script was not set correctly.
29
+
30
+
If you are using an older version of the `funscript_generator.lua` you should download the latest version of the script from the [github release page](https://github.com/michael-mueller-git/Python-Funscript-Editor/releases). With older `funscript_generator.lua` scripts there were e.g. problems with blanks in the path.
31
+
32
+
### When calling the generator, only a message box is displayed with the message: "Video file was not specified!"
33
+
34
+
In some cases OFS does not set the path to the video file within the lua script correctly (the variable `VideoFilePath` is empty). Mostly it helps to save the current project and/or create a new project. Then the variable should be set by OFS and the generator should work.
35
+
36
+
### Tracking stops automatically
37
+
38
+
If a tacker does not find the selected feature in the next frame, the tracing process stops. If more than 120 frames have already been tracked, a window appears to select the minimum and maximum value in which the reason for the abort is displayed with e.g. `Info: Tracker Woman Lost`.
39
+
40
+
If less than 120 frames have been processed, a message box should pop up with the message `Tracking time insufficient`. In this case, no output is generated because there is not enough data for the algorithm to work with.
<li>Download the latest packed Python Funscript Editor from <ahref="https://github.com/michael-mueller-git/Python-Funscript-Editor/releases">github release page</a>.</li>
118
-
<li>Extract the Archiv to an Path without special character or spaces.</li>
119
-
<li>Copy the <code>funscript_generator.lua</code> script (<ahref="https://github.com/michael-mueller-git/Python-Funscript-Editor/tree/main/contrib/OpenFunscripter"><code>Repository/contrib/OpenFunscripter</code></a>) to <code>data/lua</code> in your OFS directory.</li>
121
+
<li>Download the <strong>latest</strong> packed Python Funscript Editor from <ahref="https://github.com/michael-mueller-git/Python-Funscript-Editor/releases">github release page</a>.</li>
122
+
<li>Extract the Archiv.</li>
123
+
<li>Download the <strong>latest</strong><code>funscript_generator.lua</code> script from <ahref="https://github.com/michael-mueller-git/Python-Funscript-Editor/releases">github release page</a>.</li>
124
+
<li>Move the downloaded <code>funscript_generator.lua</code> script to <code>data/lua</code> in your OFS directory.</li>
120
125
<li>Open the <code>funscript_generator.lua</code> file and adjust the <code>Settings.FunscriptGenerator</code> and <code>Settings.TmpFile</code> variable.</li>
121
-
<li><code>Settings.FunscriptGenerator</code>: Point to the extracted Python Funscript Editor program.</li>
126
+
<li><strong>NOTE:</strong> You have to use use <code>/</code> or <code>\\</code> for the <code>\</code> symbols in your path!</li>
127
+
<li><code>Settings.FunscriptGenerator</code>: Point to the extracted Python Funscript Editor program (better double check the complete path string to avoid errors later on).</li>
122
128
<li><code>Settings.TmpFile</code>: Specifies a temporary file location where to store the result (must be a file not a directory!). The file does not have to exist at the moment. The specified file will be generated from the Python Funscript Editor and will be overwritten automatically at the next time the generator is started!</li>
123
129
<li>Now launch OFS.</li>
124
130
<li>Navigate to <code>View : Special functions : Custom Functions</code> and select the <code>funscript_generator.lua</code> entry. Click the Button <code>Bind Script</code> (This may trigger the funscript generator, just ignore it for now).</li>
125
131
<li>Navigate to <code>Options : Keys : Dynamic</code> and insert a shortcut for the funscript generator.</li>
126
132
<li>Now you can use the shortcut at any position in the video to start the funscript generator.</li>
127
-
</ol></div>
133
+
</ol>
134
+
<h2id="troubleshot">Troubleshot</h2>
135
+
<h3id="after-setting-the-min-and-max-value-after-tracking-no-points-are-inserted-in-ofs">After setting the min and max value after tracking no points are inserted in OFS</h3>
136
+
<p>If the points are missing in OFS then most likely the variable <code>Settings.TmpFile</code> in the <code>funscript_generator.lua</code> script is set incorrectly.</p>
137
+
<h3id="noting-happens-when-i-press-the-shortcut-for-the-funscript-generator">Noting happens when i press the Shortcut for the Funscript Generator</h3>
138
+
<p>In most cases, the variable <code>Settings.FunscriptGenerator</code> in the <code>funscript_generator.lua</code> script was not set correctly.</p>
139
+
<p>If you are using an older version of the <code>funscript_generator.lua</code> you should download the latest version of the script from the <ahref="https://github.com/michael-mueller-git/Python-Funscript-Editor/releases">github release page</a>. With older <code>funscript_generator.lua</code> scripts there were e.g. problems with blanks in the path.</p>
140
+
<h3id="when-calling-the-generator-only-a-message-box-is-displayed-with-the-message-video-file-was-not-specified">When calling the generator, only a message box is displayed with the message: "Video file was not specified!"</h3>
141
+
<p>In some cases OFS does not set the path to the video file within the lua script correctly (the variable <code>VideoFilePath</code> is empty). Mostly it helps to save the current project and/or create a new project. Then the variable should be set by OFS and the generator should work.</p>
<p>If a tacker does not find the selected feature in the next frame, the tracing process stops. If more than 120 frames have already been tracked, a window appears to select the minimum and maximum value in which the reason for the abort is displayed with e.g. <code>Info: Tracker Woman Lost</code>.</p>
144
+
<p>If less than 120 frames have been processed, a message box should pop up with the message <code>Tracking time insufficient</code>. In this case, no output is generated because there is not enough data for the algorithm to work with.</p></div>
0 commit comments