Skip to content

Instantly share code, notes, and snippets.

@papr
Created June 28, 2021 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save papr/04b9e4b9c1758c3701bf260dfa67f83f to your computer and use it in GitHub Desktop.
Save papr/04b9e4b9c1758c3701bf260dfa67f83f to your computer and use it in GitHub Desktop.
from pyglui import ui
from plugin import Plugin
class Custom_Calibration_Confidence_Threshold(Plugin):
def init_ui(self):
self.add_menu()
self.menu.append(
ui.Slider(
"min_calibration_confidence",
self.g_pool,
min=0.0,
max=1.0,
step=0.01,
label="Minimum calibration confidence threshold",
)
)
def deinit_ui(self):
self.remove_menu()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment