obs-filter-hotkeys icon indicating copy to clipboard operation
obs-filter-hotkeys copied to clipboard

filter *values* via hotkeys?

Open braverock opened this issue 2 years ago • 2 comments

I find that with both audio and video filters, I often want to slightly adjust the filter values.

It would be possible to set up several stepped values as different named filters, and turn those on and off with obs-filter-hotkeys, but it would be more useful for my use case to just have hotkey control over the values themselves...

For example, in Color Correction Filters:

image

it would be good to be able to select e.g. Brightness, and attach hotkeys to up, down, and 'reset' (to zero) or a hotkey for a specific value. Then I could bind these hotkeys to my stream deck and have buttons that don't require opening the Color Correction panel.

braverock avatar Jul 14 '21 03:07 braverock

That functionality is partially implemented in obs-libre-macros

For Color Correction you would write print_settings2(source, "Color Correction") - to get the names of keys which are modifiable, then set settings using that key.
The output looks like this:

[---------- settings ----------
{"contrast":-2.0099999999999998}
---------- private_settings ----------
{}
---------- default settings for this source type ----------
{"brightness":0.0,"color_add":0,"color_multiply":16777215,"contrast":0.0,"gamma":0.0,"hue_shift":0.0,"opacity":1.0,"saturation":0.0}
---------- default private settings for this source type ----------
{}
----------Color Correction----------]

Some stuff can be written in pure Lua, some only in cdefs .

upgradeQ avatar Jul 14 '21 15:07 upgradeQ

It is implemented now in 2.1.0 version, see https://github.com/upgradeQ/obs-libre-macros#view-and-set-settings , though no min/max limit check.

upgradeQ avatar Jul 19 '21 21:07 upgradeQ