Ejemplo n.º 1
0
def script_defaults(settings):
    debug("Calling defaults")

    obs.obs_data_set_default_bool(settings, "enabled", enabled)
    obs.obs_data_set_default_int(settings, "check_frequency", check_frequency)
    obs.obs_data_set_default_string(settings, "display_text", display_text)
    obs.obs_data_set_default_string(settings, "source_name", source_name)
    for i in filter(lambda x: not x.startswith('_'), calcingfunc.keys()):
        obs.obs_data_set_default_bool(settings,
                                      globals()[i].id,
                                      globals()[i].state)
def script_defaults(settings):
    obs.obs_data_set_default_int(settings, "weekday", weekday)
    obs.obs_data_set_default_int(settings, "event_start", event_start)

    obs.obs_data_set_default_int(settings, "preshow_duration",
                                 preshow_duration)

    obs.obs_data_set_default_string(settings, "countdown_final_text",
                                    countdown_final_text)

    obs.obs_data_set_default_bool(settings, "manage_streaming",
                                  manage_streaming)
    obs.obs_data_set_default_bool(settings, "manage_recording",
                                  manage_recording)
Ejemplo n.º 3
0
def script_defaults(settings):
    global debug_mode
    if debug_mode: print("Calling defaults")

    global enabled
    global source_title
    global source_presenter
    global source_time
    global check_frequency
    global json_filename

    obs.obs_data_set_default_bool(settings, "enabled", enabled)
    obs.obs_data_set_default_int(settings, "check_frequency", check_frequency)
    obs.obs_data_set_default_string(settings, "source_title", source_title)
    obs.obs_data_set_default_string(settings, "source_presenter",
                                    source_presenter)
    obs.obs_data_set_default_string(settings, "source_time", source_time)
    obs.obs_data_set_default_string(settings, "json_filename", json_filename)
    if debug_mode: print("defaults json_filename " + json_filename)
Ejemplo n.º 4
0
def script_defaults(settings):
    """Sets the default values

    This is a built-in OBS function.

    It sets all of the default values when the user presses the "Defaults"
    button on the "Scripts" screen.
    """

    # Set the run boolean as false by default, just in case
    obs.obs_data_set_default_bool(settings, "run_boolean", False)

    # Set the default update interval at 1 second
    obs.obs_data_set_default_int(settings, "check_interval_int", 1)

    obs.obs_data_set_default_int(settings, "sprite_height", 50)
    obs.obs_data_set_default_int(settings, "sprite_width", 50)

    # Set the default sprite style as using the Showdown type
    obs.obs_data_set_default_string(settings, "sprite_style", "showdown")
Ejemplo n.º 5
0
def script_defaults(settings):
    global debug_mode
    if debug_mode: print("Calling defaults")

    global enabled
    global source_name
    global display_text
    global alt_display_text
    global latency
    global output_buffer

    obspython.obs_data_set_default_bool(settings, "enabled", enabled)
    obspython.obs_data_set_default_int(settings, "latency", latency)
    obspython.obs_data_set_default_string(settings, "source_name", source_name)
    obspython.obs_data_set_default_string(settings, "display_text",
                                          display_text)
    obspython.obs_data_set_default_string(settings, "alt_display_text",
                                          alt_display_text)
    obspython.obs_data_set_default_int(settings, "output_buffer",
                                       output_buffer)
Ejemplo n.º 6
0
def script_defaults(settings):
    obs.obs_data_set_default_string(settings, 'steamurl', "")
    obs.obs_data_set_default_string(settings, 'source_name', "")
    obs.obs_data_set_default_int(settings, 'interval', DEFAULT_INTERVAL)
    obs.obs_data_set_default_int(settings, 'blink_speed', DEFAULT_BLINK_SPEED)
    obs.obs_data_set_default_bool(settings, 'debug', False)
    obs.obs_data_set_default_bool(settings, 'enable', True)
    obs.obs_data_set_default_bool(settings, 'onlyruninql', True)
def script_defaults(settings):
    obs.obs_data_set_default_double(settings, "transition_time", 0.5)
    obs.obs_data_set_default_string(settings, "host", "localhost")
    obs.obs_data_set_default_int(settings, "port", 50002)
    obs.obs_data_set_default_string(settings, "password", "password")
    obs.obs_data_set_default_bool(settings, 'autoconnect', True)
Ejemplo n.º 8
0
def script_defaults(settings):
    obs.obs_data_set_default_bool(settings, "is_active", is_active)
    obs.obs_data_set_default_int(settings, "left_width", left_width)
    obs.obs_data_set_default_int(settings, "check_freq", check_freq)
    obs.obs_data_set_default_string(settings, "scene_for_left_mon", "")
    obs.obs_data_set_default_string(settings, "scene_for_right_mon", "")
Ejemplo n.º 9
0
def script_defaults(settings):
    set_locale()
    obs.obs_data_set_default_string(settings, "race_info", _("Race info"))
    obs.obs_data_set_default_string(settings, "race", "None")
    obs.obs_data_set_default_int(settings, "qualifier_cutoff", 3)
    obs.obs_data_set_default_bool(settings, "timer_decimals", True)
Ejemplo n.º 10
0
def script_defaults(settings):
    obs.obs_data_set_default_int(settings, "xMaxSize", xMaxSize)
    obs.obs_data_set_default_int(settings, "yMaxSize", yMaxSize)
    obs.obs_data_set_default_int(settings, "followRate", followRate)
    obs.obs_data_set_default_int(settings, "zoomRate", zoomRate)
    obs.obs_data_set_default_bool(settings, "keepAspectRatio", keepAspectRatio)
Ejemplo n.º 11
0
def script_defaults(settings):
    obs.obs_data_set_default_bool(settings, "is_active", is_active)
Ejemplo n.º 12
0
def script_defaults(settings):
	logger.debug('script_defaults')
	obs.obs_data_set_default_bool(settings, "enabled", True)
	obs.obs_data_set_default_bool(settings, "use_default_fps", True)
	obs.obs_data_set_default_int(settings, "custom_fps", 30)
Ejemplo n.º 13
0
def script_defaults(settings):
    obs.obs_data_set_default_bool(settings, "verbose", False)
Ejemplo n.º 14
0
def script_defaults(settings):
    if debug_mode:
        print("Calling defaults")

    obs.obs_data_set_default_bool(settings, "enabled", enabled)
    obs.obs_data_set_default_int(settings, "check_frequency", check_frequency)
    obs.obs_data_set_default_string(settings, "display_text", display_text)
    obs.obs_data_set_default_string(settings, "source_name", source_name)
    obs.obs_data_set_default_bool(settings, "spotify", customset['spotify'])
    obs.obs_data_set_default_bool(settings, "vlc", customset['vlc'])
    obs.obs_data_set_default_bool(
        settings, "yt_firefox", customset['yt_firefox'])
    obs.obs_data_set_default_bool(
        settings, "yt_chrome", customset['yt_chrome'])
    obs.obs_data_set_default_bool(
        settings, "foobar2000", customset['foobar2000'])
    obs.obs_data_set_default_bool(settings, "necloud", customset['necloud'])
    obs.obs_data_set_default_bool(settings, "aimp", customset['aimp'])
Ejemplo n.º 15
0
def script_defaults(settings):
    obs.obs_data_set_default_bool(settings, "clock_24hr", False)
    obs.obs_data_set_default_string(settings, "timezone_text", "")
    obs.obs_data_set_default_string(settings, "source_name", "")