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

Set button step with variable #3128

Open
2 tasks done
peterfdej opened this issue Nov 4, 2024 · 1 comment
Open
2 tasks done

Set button step with variable #3128

peterfdej opened this issue Nov 4, 2024 · 1 comment
Labels
area/gui GUI / Webapp related area/internal Related to an internal action or function of Companion. Enhancement New feature or request

Comments

@peterfdej
Copy link

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

Is it possible to set a button step with a variable check in the feedback. As far as I can see now you can only set colors and text of the button. I want to set a button step without a button press action.

Usecases

Depending of the message back in the feedback, I want to use 1 button for different actions. I use one button for sending message through a socketserver to start recording or stop recording a Sony camera. That is possible with 2 steps. 1 step is start recording, step 2 is stop recording. That's the easy part. But when you start recording on the camera itself, you can change color of the button with the feedback message, but not set it to step 2, the stop recording action step. The same when you start recording with the button and stop recording direct on the camera. Then the message back from the camera should set it to step 1.

@Julusian Julusian changed the title Set button step with feedback variable Set button step with variable Nov 4, 2024
@Julusian Julusian added Enhancement New feature or request area/gui GUI / Webapp related area/internal Related to an internal action or function of Companion. labels Nov 4, 2024
@Julusian
Copy link
Member

Julusian commented Nov 4, 2024

I suppose this could work by changing the 'progress' toggle to a dropdown with 3 modes:

  1. auto-progress - (the default) same as today
  2. manual - same as the toggle disabled today
  3. from expression - enables another field which allows for inputting an expression.

That expression would allow you to use a variable, or whatever to do what you want.

This would allow us to avoid any fighting when the 'set step' action is used in combination with this feature, as we know the two are incompatible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gui GUI / Webapp related 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

2 participants