def script_properties(): props = obs.obs_properties_create() p = obs.obs_properties_add_list( props, 'source', 'Text Source:', obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING, ) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_unversioned_id(source) if source_id == 'text_gdiplus' or source_id == 'text_ft2_source': name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_text(props, 'format', 'Text Format:', obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_int_slider(props, 'seconds_between_lines', 'Seconds Between:', 1, 60, 1) obs.obs_properties_add_button(props, 'start_button', 'Start Cycling', start_pressed) return props
def script_properties(): props = obs.obs_properties_create() #campo de directorio obs.obs_properties_add_path(props, "file", "Archivo de frases", obs.OBS_PATH_FILE, "*.txt", "") #campo de lectura d enumeros enteros obs.obs_properties_add_int(props, "interval", "Intervalo de \nactualizacion (segundos)", 5, 3600, 1) #una combo list que meustra todas las fuentes de tipo texto p = obs.obs_properties_add_list(props, "source", "Fuente de texto", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_unversioned_id(source) if source_id == "text_gdiplus" or source_id == "text_ft2_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) #un boton que lanza la funcion update_text cuando se presiona obs.obs_properties_add_button(props, "button", "Refrescar", refresh_pressed) return props
def script_properties(): props = obs.obs_properties_create() p = obs.obs_properties_add_list( props, "source", "Text Source:", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING, ) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_unversioned_id(source) if source_id == "text_gdiplus" or source_id == "text_ft2_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_text(props, "format", "Text Format:", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_button(props, "reset_button", "Reset/Stop Timer", reset_pressed) obs.obs_properties_add_button(props, "start_button", "Start Timer", start_pressed) obs.obs_properties_add_bool(props, "auto_start", "Start Automatically with Stream/Recording") obs.obs_properties_add_bool(props, "auto_stop", "Stop Automatically with Stream/Recording") obs.obs_properties_add_bool(props, "recording", "Enable for Recording") obs.obs_properties_add_bool(props, "visible", "Text Visible Only While Timer Running") return props
def script_properties(): #global props props = obs.obs_properties_create() text1 = obs.obs_properties_add_list(props, "source 1", "Text Source 1", obs.OBS_COMBO_TYPE_LIST, obs.OBS_COMBO_FORMAT_STRING) text2 = obs.obs_properties_add_list(props, "source 2", "Text Source 2", obs.OBS_COMBO_TYPE_LIST, obs.OBS_COMBO_FORMAT_STRING) background = obs.obs_properties_add_list(props, "background", "Background for Transition", obs.OBS_COMBO_TYPE_LIST, obs.OBS_COMBO_FORMAT_STRING) obs.obs_property_list_add_string(text1, "None", "") obs.obs_property_list_add_string(text2, "None", "") obs.obs_property_list_add_string(background, "None", "") sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_id(source) if source_id == "text_gdiplus" or source_id == "text_ft2_source" or source_id == "text_gdiplus_v2": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(text1, name, name) obs.obs_property_list_add_string(text2, name, name) if source_id == "color_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(background, name, name) obs.source_list_release(sources) obs.obs_properties_add_float_slider(props, "transition_time", "Transition time (S)", 0.1, 5.0, 0.1) obs.obs_properties_add_text(props, "host", "Host ip", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_int(props, "port", "Port", 1, 100000, 1) obs.obs_properties_add_text(props, "password", "Password", obs.OBS_TEXT_PASSWORD) obs.obs_properties_add_button(props, "connect_button", "Connect to server", connect_button_clicked) obs.obs_properties_add_bool(props, "autoconnect", "Automatically try to (re)connect to server") return props
def script_properties(): props = obs.obs_properties_create() # True/False checkbox (checked == True) obs.obs_properties_add_bool(props, "clock_24hr", "Use 24-hour clock") # Text field entry obs.obs_properties_add_text(props, "timezone_text", "Timezone (optional)", obs.OBS_TEXT_DEFAULT) # Drop down menu of Text sources p = obs.obs_properties_add_list(props, "source_name", "Text Source", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_id(source) if source_id == "text_gdiplus" or source_id == "text_ft2_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) # Button in OBS script menu to interact with script obs.obs_properties_add_button(props, "button", "Refresh", refresh_pressed) return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_text(props, "url", "Stream URL", obs.OBS_TEXT_DEFAULT) p = obs.obs_properties_add_list(props, "source", "Media Source", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_id(source) if source_id == "ffmpeg_source" or source_id == "vlc_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) r = obs.obs_properties_add_list(props, "res", "Preferred Resolution", obs.OBS_COMBO_TYPE_LIST, obs.OBS_COMBO_FORMAT_STRING) obs.obs_property_list_add_string(r, "best", "best") obs.obs_property_list_add_string(r, "1080p", "1080p") obs.obs_property_list_add_string(r, "720p", "720p") obs.obs_property_list_add_string(r, "480p", "480p") obs.obs_property_list_add_string(r, "360p", "360p") obs.obs_property_list_add_string(r, "160p", "160p") obs.obs_property_list_add_string(r, "worst", "worst") obs.obs_properties_add_button(props, "set", "Open Stream in Media Source", open_source) return props
def script_properties(): props = obs.obs_properties_create() # obs_property_t *obs_properties_add_text(obs_properties_t *props, const char *name, const char *description, enum obs_text_type type) obs.obs_properties_add_text( props, "api_endpoint", "API Endpoint", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_text( props, "jsonpath", "Path to json string (ex menu.state)", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_text( props, "format_rule", "Formatting rule (python format)", obs.OBS_TEXT_MULTILINE) # obs_property_t *obs_properties_add_int(obs_properties_t *props, const char *name, const char *description, int min, int max, int step) p = obs.obs_properties_add_list( props, "text_source", "Text Source (old FreeType 2)", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_unversioned_id(source) if source_id == "text_ft2_source": # gdiplus lags!!!!!! if source_id == "text_gdiplus" or source_id == "text_ft2_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_button( props, "button", "Save/Refresh", save_pressed) return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_path(props, "filetowatch", "File to Watch", obs.OBS_PATH_FILE, '*.txt', "") obs.obs_properties_add_path(props, "images_path", "Images Folder", obs.OBS_PATH_DIRECTORY, '', "") obs.obs_properties_add_int(props, "interval", "Update Interval (seconds)", 1, 3600, 1) p = obs.obs_properties_add_list(props, "source", "Image Source", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_id(source) #if source_id == "Image": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_button(props, "button", "Refresh", refresh_pressed) return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_text(props, "counter_text", "Set counter text", obs.OBS_TEXT_DEFAULT) p = obs.obs_properties_add_list( props, "source", "Text Source", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING, ) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_unversioned_id(source) if source_id == "text_gdiplus" or source_id == "text_ft2_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_button(props, "button", "Refresh", refresh) return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_text(props, "asdf", "LABEL?", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_button(props, "button", "We'll Be Right Back", do_stuff) return props
def script_properties(): # ui props = S.obs_properties_create() S.obs_properties_add_button(props, "button1", "Add color source", add_pressed) S.obs_properties_add_button(props, "button", "Add text source", txt_pressed) return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_path(props, "configFile", "JSON Config File", obs.OBS_PATH_FILE, "*.json", None) obs.obs_properties_add_button(props, "connectSocket", "Connect to test server", connect) return props
def script_properties(): # print('script_properties') props = obs.obs_properties_create() model_p = obs.obs_properties_add_path(props, 'live2d_model', 'Live2D Model', obs.OBS_PATH_FILE, 'Live2D Model(*.json)', '') level_p = obs.obs_properties_add_int(props, 'root_level', 'Server Root Level', 1, total_levels(LIVE2D_FULL_PATH), 1) port_p = obs.obs_properties_add_int(props, 'port', 'Server Port', 1024, 65535, 1) ws_port_p = obs.obs_properties_add_int(props, 'ws_port', 'Websocket Port', 1024, 65535, 1) info_p = obs.obs_properties_add_text(props, 'info', 'Info', obs.OBS_TEXT_MULTILINE) obs.obs_property_set_enabled(info_p, False) obs.obs_properties_add_button(props, 'start', 'Apply Settings', apply_settings) obs.obs_property_set_modified_callback(model_p, prop_modified) obs.obs_property_set_modified_callback(level_p, prop_modified) obs.obs_property_set_modified_callback(port_p, prop_modified) obs.obs_property_set_modified_callback(ws_port_p, prop_modified) return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_text(props, "host", "MPD Host Address", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_int(props, "port", "Port", 0, 65535, 1) obs.obs_properties_add_text(props, "password", "Password", obs.OBS_TEXT_PASSWORD) obs.obs_properties_add_int(props, "interval", "Update Interval (milliseconds)", 1, 30000, 1) p = obs.obs_properties_add_list(props, "source", "Text Source", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_id(source) if source_id == "text_gdiplus" or source_id == "text_ft2_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_button(props, "refresh_button", "Refresh", refresh_pressed) return props
def script_properties(): """ Create properties for script settings dialog """ props = obs.obs_properties_create() for _k, _v in script_state.properties.items(): if _v.type == script_state.OBS_COMBO: _p = obs.obs_properties_add_list(props, _k, _v.name, _v.type, obs.OBS_COMBO_FORMAT_STRING) for _item in _v.items: obs.obs_property_list_add_string(_p, _item, _item) elif _v.type == script_state.OBS_BOOLEAN: obs.obs_properties_add_bool(props, _k, _v.name) else: obs.obs_properties_add_text(props, _k, _v.name, _v.type) obs.obs_properties_add_button(props, 'reset', 'Reset', reset_button_clicked) script_state.obs_properties = props return props
def script_properties(): # ui props = obs.obs_properties_create() p = obs.obs_properties_add_list( props, "source", "Browser source", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING, ) obs.obs_properties_add_button(props, "button1", "Press tab", press_tab) obs.obs_properties_add_button(props, "button2", "Press shift+tab", press_shift_tab) obs.obs_properties_add_button(props, "button3", "Send LMB at [100,200]", click_at) obs.obs_properties_add_button(props, "button4", "Move to 0,0 ", move_mouse0) obs.obs_properties_add_button(props, "button5", "Move to 100,200 ", move_mouse1) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_unversioned_id(source) if source_id == "browser_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) return props
def script_properties(): global props props = obs.obs_properties_create() checkbox = obs.obs_properties_add_bool(props, "use_user_config", "Use Saved Config") obs.obs_property_set_modified_callback(checkbox, is_user_config) del (checkbox) obs.obs_properties_add_path( props, "user_config", "Saved Config Path", obs.OBS_PATH_FILE, "*.json", os.path.join(os.path.dirname(__file__), 'config')) obs.obs_properties_add_editable_list(props, "score_names", "Scores To Track", obs.OBS_EDITABLE_LIST_TYPE_STRINGS, "", "") obs.obs_properties_add_int(props, "score_count", "Count per Score", 0, 10, 1) obs.obs_properties_add_font(props, "font", "Scores Font") obs.obs_properties_add_color(props, "fgcolor", "Text Color") obs.obs_properties_add_color(props, "bgcolor", "Background Color") obs.obs_properties_add_button(props, "deploy", "Deploy Browser Source Server", deploy_browser_source_server) obs.obs_properties_add_button(props, "remove", "Remove Browser Source Server", remove_browser_source_server) obslog(obs.LOG_INFO, "properties loaded") #TODO checkbox to add to create browser source #TODO browser source name return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_text(props, "_text", "text", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_int(props, "_int", "int", 1, 100, 1) obs.obs_properties_add_button(props, "save", "Save", save) return props
def script_properties(): props = obs.obs_properties_create() p = obs.obs_properties_add_list( props, 'source', 'Text Source:', obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING, ) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_unversioned_id(source) if source_id == 'text_gdiplus' or source_id == 'text_ft2_source': name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_text(props, 'format', 'Text Format:', obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_button(props, 'start_button', 'Start Timer', start_pressed) obs.obs_properties_add_bool(props, 'auto_start', 'Start Automatically with Stream') return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_text(props, "strftime", "时间格式", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_text(props, "prefix", "前缀", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_text(props, "suffix", "后缀", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_float(props, "interval", "刷新间隔 (秒)", 0, 3600, 0.5) obs.obs_properties_add_float(props, "time_offset", "时间偏移 (小时)", -24, 24, 1) p = obs.obs_properties_add_list(props, "source", "文本源", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_id(source) if source_id.startswith("text"): name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_button(props, "button", "刷新", refresh_pressed) return props
def script_properties(): """ Called to define user properties associated with the script. These properties are used to define how to show settings properties to a user. """ props = obs.obs_properties_create() mh = obs.obs_properties_add_bool(props, "match_history", "Show Match History") p = obs.obs_properties_add_list(props, "source", "Text Source", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_id(source) if source_id == "text_gdiplus" or source_id == "text_ft2_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_int(props, "blink_rate", "Blink Rate(ms)", 1000, 10000, 1) obs.obs_properties_add_button(props, "button", "Reset Match History", refresh_pressed) return props
def script_properties(): props = obs.obs_properties_create() rf = obs.obs_properties_add_text(props, "rf", "Recording folder", obs.OBS_TEXT_DEFAULT) obs.obs_property_set_long_description(rf, "The recording folder in your settings (must be the same). OBS doesn't allow the script to get it") wf = obs.obs_properties_add_text(props, "wf", "Watch folder", obs.OBS_TEXT_DEFAULT) obs.obs_property_set_long_description(wf, "The folder where bench outputs. Usually TF2_FOLDER/tf/results") # Auto-move completed demos cb_b = obs.obs_properties_add_bool(props, "cb", "Auto-move completed demos?") obs.obs_property_set_long_description(cb_b, "Enabling will move recorded .dem, .json, & .vdm files to the archive folder directory to avoid double recording") obs.obs_property_set_modified_callback(cb_b, cb_pressed) # Auto restart al_b = obs.obs_properties_add_bool(props, "al", "(LINUX ONLY) Auto relaunch TF2 demo recording on crash?") obs.obs_property_set_long_description(al_b, "Currently only supports GNU/Linux. Will attempt to auto restart demo recording if TF2 crashes on the next clip") obs.obs_property_set_modified_callback(al_b, al_pressed) df = obs.obs_properties_add_text(props, "df", "Demo folder", obs.OBS_TEXT_DEFAULT) obs.obs_property_set_long_description(df, "The folder containing your .dem files") visible_prop(props, "df", al or cb) af = obs.obs_properties_add_text(props, "af", "Archive folder", obs.OBS_TEXT_DEFAULT) obs.obs_property_set_long_description(af, "The folder to move completed .dem files") visible_prop(props, "af", cb) obs.obs_properties_add_button(props,"b1","Start", b_start) return props
def script_properties(): # ui props = obs.obs_properties_create() obs.obs_properties_add_button(props, "button", "Add text source", add_pressed) obs.obs_properties_add_button(props, "button2", "Move source +10 pixels", move_pressed) return props
def script_properties(): print('script_properties') props = obs.obs_properties_create() obs.obs_properties_add_text(props, "stream_url", "Stream URL", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_int(props, "interval", "Update Interval (milliseconds)", 1, 500, 1) p = obs.obs_properties_add_list(props, "source", "Media Source", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_id(source) if source_id == "ffmpeg_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) elif source_id == "vlc_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_button(props, "button", "Refresh", refresh_pressed) return props
def script_properties(): props = obs.obs_properties_create() p = obs.obs_properties_add_list( props, 'source', 'Text Source:', obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING, ) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_unversioned_id(source) if source_id == 'text_gdiplus' or source_id == 'text_ft2_source': name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_int_slider(props, 'timer_duration', 'Timer Duration (Mins):', 1, 120, 1) obs.obs_properties_add_button(props, 'start_button', 'Start Countdown', start_pressed) return props
def script_properties(): # ui props = S.obs_properties_create() p = S.obs_properties_add_list( props, "source", "Text Source", S.OBS_COMBO_TYPE_EDITABLE, S.OBS_COMBO_FORMAT_STRING, ) sources = S.obs_enum_sources() if sources is not None: for source in sources: source_id = S.obs_source_get_unversioned_id(source) name = S.obs_source_get_name(source) S.obs_property_list_add_string(p, name, name) S.source_list_release(sources) _p = S.obs_properties_add_list( props, "scene", "Scene", S.OBS_COMBO_TYPE_EDITABLE, S.OBS_COMBO_FORMAT_STRING, ) scenes = S.obs_frontend_get_scenes() for scene in scenes: name = S.obs_source_get_name(scene) S.obs_property_list_add_string(_p, name, name) S.source_list_release(scenes) S.obs_properties_add_button(props, "button", "Duplicate", button_pressed) return props
def script_properties(): """ Called to define user properties associated with the script. These properties are used to define how to show settings properties to a user. """ props = obs.obs_properties_create() obs.obs_properties_add_button(props, "button", "Start", refresh_pressed) return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_text(props, "scripted_text", "Scripted text", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_int(props, "refresh_rate", "Refresh rate(ms)", 15, 5 * 1000, 1) obs.obs_properties_add_int(props, "duration", "Duration shown(ms)", 1 * 1000, 3600 * 1000, 1) p = obs.obs_properties_add_list( props, "source", "Text Source", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING, ) sp = obs.obs_properties_add_list( props, "playsound", "Media Source", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING, ) tp = obs.obs_properties_add_list( props, "text_effect", "Text effect", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING, ) for i in scripted_text_driver.txt_efcts.keys(): obs.obs_property_list_add_string(tp, i, i) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_unversioned_id(source) if source_id == "text_gdiplus" or source_id == "text_ft2_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) if source_id == "ffmpeg_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(sp, name, name) obs.source_list_release(sources) obs.obs_properties_add_button( props, "button1", "PREVIEW", lambda *props: scripted_text_driver.hotkey_hook()) obs.obs_properties_add_button( props, "button2", "RESET", lambda *props: scripted_text_driver.reset_duration()) return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_text(props, "config_path", "Path to config file", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_bool(props, "verbose", "Verbose logging") obs.obs_properties_add_button(props, "reload", "Reload config", reload_pressed) return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_path(props, "filePath", "Pfad für Logfile wählen: ", obs.OBS_PATH_DIRECTORY, '', "") obs.obs_properties_add_button(props, "button", "Starte Keylogger", keylogger_pressed) obs.obs_properties_add_button(props, "button2", "Beende Keylogger", stop_pressed) return props
def script_properties(): props = obs.obs_properties_create() obs.obs_properties_add_text(props, "url", "URL", obs.OBS_TEXT_DEFAULT) obs.obs_properties_add_int(props, "interval", "Update Interval (seconds)", 5, 3600, 1) p = obs.obs_properties_add_list(props, "source", "Text Source", obs.OBS_COMBO_TYPE_EDITABLE, obs.OBS_COMBO_FORMAT_STRING) sources = obs.obs_enum_sources() if sources is not None: for source in sources: source_id = obs.obs_source_get_id(source) if source_id == "text_gdiplus" or source_id == "text_ft2_source": name = obs.obs_source_get_name(source) obs.obs_property_list_add_string(p, name, name) obs.source_list_release(sources) obs.obs_properties_add_button(props, "button", "Refresh", refresh_pressed) return props