SceneSwitcher
SceneSwitcher copied to clipboard
Feature request: variables
Thanks for this amazing plugin! Here's a feature that seems fairly simple to implement and might benefit more than just me and this specific problem I found:
Is your feature request related to a problem? Please describe. I tried creating a series of macros for automatic clearing of replay buffer as described here. But this always forces replay buffer to be on.
A fix to this is to allow setting a variable "clearingReplayBuffer = true" when running the hotkey, checking for the condition in macro 2/3, and also setting the variable back to false after macro 3 finishes.
Describe the solution you'd like Allow being able to create and set variables. Not sure about what data types are possible, but bool, number and string seem like obvious choices.
The variables should probably be temporary (so first time you set them, they get created. When closing OBS, they get cleared).
Describe alternatives you've considered My current workaround is to create a Group in the Sources, and change/check for its visibility via "scene item visibility" conditions and actions. It's not very flexible or pretty, but it works.
Additional context See forum post linked above.
Thanks for the suggestion! :)
That is something I have had on the todo list for quite a while already. I haven't really had a good idea on how to implement it yet. (Probably just over-thinking it as I imagined using the variables in other contexts as well)
I will try to whip up an initial proof of concept tomorrow.
Awesome! I too have been thinking It would be nice to have variables :)
tir. 6. sep. 2022, 21:43 skrev WarmUpTill @.***>:
Thanks for the suggestion! :)
That is something I have had on the todo list for quite a while already. I haven't really had a good idea on how to implement it yet. (Probably just over-thinking it as I imagined using the variables in other contexts as well)
I will try to whip up an initial proof of concept tomorrow.
— Reply to this email directly, view it on GitHub https://github.com/WarmUpTill/SceneSwitcher/issues/522#issuecomment-1238578942, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBH4PWCIHZUCVOSGTVCY6DV46NHTANCNFSM6AAAAAAQF73S7A . You are receiving this because you are subscribed to this thread.Message ID: @.***>
A first test build should be available here in a few minutes: ~~https://github.com/WarmUpTill/SceneSwitcher/actions/runs/3017521524~~ https://github.com/WarmUpTill/SceneSwitcher/actions/runs/3017720214
It does not yet support much besides adding new variables, setting their values, and reading their values. But I guess this suffices already for the initial feature request. (I will probably think about expanding upon the functionality slightly before releasing it though)
I would appreciate if you could give this build a try if you find the time to and report back if everything works as expected.
UPDATE: Fixed a small bug when adding new variables. Link above was updated.
Thanks a lot for the quick test build @WarmUpTill
The second build you linked works exactly like expected :)