Skip to content

Commit 2ccdb4a

Browse files
author
arch
committed
bring back raw output
1 parent 1be7af0 commit 2ccdb4a

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# usage: `nix develop --impure`
1+
# usage: `nix develop --command zsh`
22
{
33
description = "MTFG";
44

funscript_editor/config/settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ notification_sound: 'off'
2626
# - 'THRESHOLD': Detects fades in video.
2727
scene_detector: 'CSV'
2828

29+
# Disable postprocessing
30+
raw_output: False
31+
2932
# Force dark ui theme
3033
dark_theme: False
3134

funscript_editor/ui/funscript_generator_window.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,18 @@ def __cut_completed(self, cut_values):
169169
def __scaling_completed(self, score):
170170
self.score = score
171171
self.__logger.info('scaling completed')
172-
self.__next_postprocessing(None, [], [])
172+
if not SETTINGS["raw_output"]:
173+
self.__next_postprocessing(None, [], [])
174+
else:
175+
self.__logger.info("Raw Output")
176+
for metric in self.funscripts:
177+
for idx, val in enumerate(self.score[metric]):
178+
self.funscripts[metric].add_action(
179+
round(val),
180+
FFmpegStream.frame_to_millisec(self.get_absolute_framenumber(idx), self.video_info.fps)
181+
)
182+
183+
self.__funscript_generated(self.funscripts, "OK", True)
173184

174185

175186
# Setp 4

shell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ let python =
2626
in
2727
pkgs.mkShell {
2828
nativeBuildInputs = with pkgs; [
29+
zsh
2930
qt5.qtbase
3031
qt5.full
3132
qt5.wrapQtAppsHook

0 commit comments

Comments
 (0)