Skip to content

Commit 8e2ab05

Browse files
author
arch
committed
add distance to multiaxis output
1 parent a42fd62 commit 8e2ab05

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

contrib/Installer/assets/main.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ stopAtNextActionPoint = true
1818
filterSimilarTimestamps = true
1919
scriptNames = {}
2020
scriptNamesCount = 0
21-
scriptAssignment = {x={idx=1}, y={idx=1}, roll={idx=1}}
21+
scriptAssignment = {x={idx=1}, y={idx=1}, distance={idx=1}, roll={idx=1}}
2222

2323
function exists(file)
2424
return os.rename(file, file)
@@ -483,6 +483,8 @@ function gui()
483483
multiaxis, _ = ofs.Checkbox("Enable multiaxis", multiaxis)
484484

485485
if multiaxis then
486+
ofs.Separator()
487+
ofs.Text("Multiaxis Output Assignment:")
486488
local comboNum = 1
487489
for k,v in pairs(scriptAssignment) do
488490
ofs.Text(" o "..k.." ->")

docs/app/docs/user-guide/usage.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,3 @@ You can then specify blocking/non blocking: the first means that when the featur
4242
### Multiaxis Tracking
4343

4444
Multiaxis funscripts are basically one funscript for each axis of movement or rotation. Available axis depends on the used device. The MTFG support the output of `heave (suck) = y`, `sway = x` and `roll`. When you enable the multiaxis support in the OFS MTFG Extension Widget you can assign the tracking metric to the desired funscript via drop down menu. Use the option `ignore` if you don't need the corresponding movement/rotation for your funscripts. The widget show all opened funscripts from OFS. To add a new funscript axis in OFS you can use `Project : Add ... : Shortcust` menu from the OFS app bar. E.g. set `roll = *.roll`, `x = *.sway` and `y = *.suck`. With this settings you probably want to select the Tracking Metric `x + y + roll` in the MTFG settings dialog because the Extension can only import available tracking data. The setting in the OFS widget window is only the binding for the MTFG output. So the extension only import available data from MTFG. When you chose e.g. only the Tracking Metric `y (up-down)` you get only the resulting movement for `y` in OFS no matter what you set for the binding in OFS widget.
45-
46-
In Multiaxis tracking the Tracking Metric `distance` is not available because this metric already combines the `x` and `y` movement to an euclidean distance in 2D space.

funscript_editor/ui/settings_dialog.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,19 @@ def __setup_combo_boxes(self):
145145
'y inverted (down-up)',
146146
'x (left-right)',
147147
'x inverted (right-left)',
148+
'distance (p1-p2)',
149+
'distance inverted (p2-p1)',
148150
'roll (rotation)',
149151
'roll inverted (rotation)'
150152
])
151153

152154
if self.include_multiaxis:
153155
self.ui.trackingMetricComboBox.addItems([
154156
"y + roll (up-down + rotation)",
157+
"distance + roll (p1-p1 + rotation)",
155158
"x + y (left-right + up-down)",
156159
"x + y + roll (left-right + up-down + rotation)",
157160
])
158-
else:
159-
self.ui.trackingMetricComboBox.addItems([
160-
'distance (p1-p2)',
161-
'distance inverted (p2-p1)',
162-
])
163161

164162
self.ui.processingSpeedComboBox.addItems([
165163
"0 (accurate)",

0 commit comments

Comments
 (0)