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

"Random Interval" options for Trigger Events #3298

Open
2 tasks done
arikorn opened this issue Feb 18, 2025 · 0 comments
Open
2 tasks done

"Random Interval" options for Trigger Events #3298

arikorn opened this issue Feb 18, 2025 · 0 comments
Labels
area/triggers Enhancement New feature or request Good first issue Good for newcomers

Comments

@arikorn
Copy link

arikorn commented Feb 18, 2025

Is this a feature relevant to companion itself, and not a module?

  • I believe this to be a feature for companion, not a module

Is there an existing issue for this?

  • I have searched the existing issues

Describe the feature

(This was originally posted incorrectly in the wrong place -- bitfocus/companion-module-base#116 -- so I'm moving it here)

Currently Time Interval only takes a constant. It would be useful to allow random intervals. The simplest way to do so would be to add a Random Interval event option:

Suggestion:
"Random Interval"
Inputs: "minimum interval" and "maximum interval" (in seconds)
(Also, unlike randomInt, the maximum would be inclusive.)

Interval value is re-evaluated at the end of each interval.

(Perhaps simpler but not as accessible to all: add expressions to "Time Interval")

This would also address my issue #3297 which is a more awkward/expert work-around to this feature request.

Usecases

Videographers often want to change "camera angles" (input source to the switcher) to provide more interest for the viewer. They often say that making these changes at random intervals makes it seem more natural.
Providing a trigger that runs an action to switch the "camera angle" at random intervals would provide an elegant and simple solution to their request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/triggers Enhancement New feature or request Good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants