Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 15, 2025

Enables outputting URL/API data directly to OBS filter properties (e.g., Color Correction's multiply field). Supports dynamic filter control from external sources like Google Sheets.

Changes

Data model

  • Added filter_name and filter_setting_name to output_mapping struct with JSON persistence

UI

  • Filters enumerated in dropdown as (Type) SourceName -> FilterName
  • Added filter setting name input field, enabled when filter selected

Output routing

  • New setFilterCallback() applies values via obs_source_get_filter_by_name() and obs_source_update()
  • Type detection: boolean strings → bool, 0x prefix → hex int, numeric → int/double, fallback → string
  • Helper functions is_filter_output() and parse_filter_output() to detect and parse filter targets

Usage

Output dropdown: (Image) Scoreboard -> Color Correction
Filter Setting Name: multiply
Template: {{output}}
API returns: "0xFFFF0000" → filter updates to red

Supports any OBS filter (built-in or third-party), any property type. See FILTER_OUTPUT_USAGE.md for details.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add obs_source_filter as Output</issue_title>
<issue_description>Could it be possible to add obs_source_filter as an Output for URL Source. I use the plugin to pull data from Google sheets to create dynamic overlay for esports events (scoreboard and such) and it would be helpful if I could edit Filter "Color Correction" and it's field "Color Multiply" with the plugin.

I understand if this specific use-case is out of the scope. If it can't be added officially I will compile my own version with support for that specific filter.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: royshil <441170+royshil@users.noreply.github.com>
@royshil royshil marked this pull request as ready for review November 15, 2025 10:49
Copilot AI and others added 3 commits November 15, 2025 10:50
Co-authored-by: royshil <441170+royshil@users.noreply.github.com>
Co-authored-by: royshil <441170+royshil@users.noreply.github.com>
Copilot AI changed the title [WIP] Add obs_source_filter as output for URL Source Add obs_source_filter as output target Nov 15, 2025
Copilot AI requested a review from royshil November 15, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add obs_source_filter as Output

2 participants