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

Hotkeys #7

Open
EmilySunpy opened this issue Jan 16, 2018 · 1 comment
Open

Hotkeys #7

EmilySunpy opened this issue Jan 16, 2018 · 1 comment

Comments

@EmilySunpy
Copy link

Should it be possible to bind hotkeys to edit values in the shader?
I have seen that there is no option to add keybinds to filters which already is a big downside. (Just a simple toggle feature should have been a good step)
What should have been the perfect feature for this if this was to be implemented into the shader itself should be to have some sort of step value of some sort. Say that you have one keybind to set a value in a shader to 1, then another to set it to 0. If you had step enabled it should smoothly transition from 1 to 0 depending on the step value.

@nleseul
Copy link
Owner

nleseul commented Dec 2, 2018

I really like this idea... I'd have to do some thinking about how to identify values that should be associated with hotkeys, though. They'd be uniform bools or floats as far as the shader is concerned, but they'd need to be distinguished from values that just use normal checkboxes or sliders. Maybe one could just set up a separate table of hotkey bindings that reference the shader variables?

The HLSL specification does seem to include support for annotations, which would be perfect for something like this, but I'd have to check if OBS's effect parser can handle that syntax.

Short answer: I'd love it, but don't know when I'll get to work on it and it would take somethought. Contributions welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants