Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter *values* via hotkeys? #8

Open
braverock opened this issue Jul 14, 2021 · 2 comments
Open

filter *values* via hotkeys? #8

braverock opened this issue Jul 14, 2021 · 2 comments
Labels
out of scope question Further information is requested

Comments

@braverock
Copy link

braverock commented Jul 14, 2021

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.

@upgradeQ
Copy link
Owner

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 upgradeQ added question Further information is requested out of scope labels Jul 14, 2021
@upgradeQ
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
out of scope question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants