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

Allow to ENABLE/DISABLE any step in button #3154

Open
2 tasks done
Suenee opened this issue Nov 19, 2024 · 1 comment
Open
2 tasks done

Allow to ENABLE/DISABLE any step in button #3154

Suenee opened this issue Nov 19, 2024 · 1 comment
Labels
area/internal Related to an internal action or function of Companion. Enhancement New feature or request

Comments

@Suenee
Copy link

Suenee commented Nov 19, 2024

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

Assumption:

  • I have a button that has more than one step.

For each step, I can set whether it is ENABLED/DISABLED.

If it is ENABLED:
The step is executed as always.

If DISABLED:
The step is skipped.

Define a function that allows you to dynamically specify whether a step is executed or not. It is enough to know the address of the button, the number of the step and its desired state.

USECASE:
Dynamically change the behavior and number of button steps. In practice, I have one button that calls up advertising slogans. If I had this feature available, I could dynamically change which ad slogans are shown. If the button has only one step, it cannot be disabled. If the button has more than one step, only "x-1" can be deactivated from the total number of "x" steps.

Usecases

No response

@Julusian Julusian added Enhancement New feature or request area/internal Related to an internal action or function of Companion. labels Nov 23, 2024
@BlakesHeaven
Copy link

BlakesHeaven commented Jan 3, 2025

I also need this feature.

Usecase
We have three PTZ Cams - 1, 2 & 3.
We have a set of buttons that set PTZ-# to PreView for several preset locations, where # equals whatever is not LIVE:

  • ie When PTZ-1 is LIVE then 2 or 3 can be set to preview, when 2 is LIVE then 1 or 3 can be set... etc.

The movable Camera numbers are assigned to custom variables Movable_CamA and Movable_CamB.
We have a button to toggle between the two NON-LIVE PTZ Cams; this button has the Movable_CamA variable in Step 1 and Movable_CamB in Step 2

I need to be able to have a third step which is disabled when one of the cams is LIVE, but when none of the cameras are LIVE (when showing slides or video), I need the step to be enabled so that Movable_CamC (for PTZ-3) can be included in the mix of selectable Cameras that are not LIVE.

I need to use this from a trigger.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/internal Related to an internal action or function of Companion. Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants