companion icon indicating copy to clipboard operation
companion copied to clipboard

Enable/Disable actions

Open BasilChessman opened this issue 4 years ago • 3 comments

The ability to disable an action would be great. Currently, one must delete the action altogether. An option to enable and disable any action would be much appreciated.

Some buttons end up with numerous actions stacked. Being able to disable specific actions without having to delete them would be a tremendous time saver.

Additionally, the ability to set the enabled/disabled state of an action by an internal action or feedback option would be even better. An example would be, if an instance feedback is true, then enable action, if false, then disable action. Buttons could be utilized that wouldn't function unless the system was in a specific state. There are many possibilities.

BasilChessman avatar Jan 24 '21 22:01 BasilChessman

+1 I have been think about the same thing!

stevespaw avatar Jan 27 '21 14:01 stevespaw

+1 here!

shaunzyb avatar Jan 11 '22 19:01 shaunzyb

+1 !!!

Akibakki avatar Mar 25 '22 11:03 Akibakki

The ability to manually enable/disable actions and feedbacks on buttons will be in 3.0.

I don't think that 'automating' this via actions is viable. We don't have a good way to identify actions, or to present the list of things that could be enabled/disabled from another action. Doing so will be complex and liable to break whenever the actions on the target button are edited. I think that this kind of functionality would be better served by https://github.com/bitfocus/companion/issues/1052

Julusian avatar Sep 30 '22 22:09 Julusian

More complex description on #2233

Suenee avatar Dec 11 '22 08:12 Suenee

The ability to manually enable/disable actions and feedbacks on buttons will be in 3.0.

I can't see how to disable an action in 3.0.0-rc2 - where should I be looking?

I want to only enable the button if a variable has a certain value

BryanCrotaz avatar Jul 13 '23 02:07 BryanCrotaz

@BryanCrotaz image The green rectangle is a on/off toggle.

istnv avatar Jul 13 '23 02:07 istnv

@BryanCrotaz

image

The green rectangle is a on/off toggle.

How do I enable/disable based on a variable? Eg you can't pause a video if it's on air.

BryanCrotaz avatar Jul 13 '23 04:07 BryanCrotaz

For that you will need a trigger and a couple of variables. Rough outline: One variable to toggle between 1 and 0 for On/Off air Another variable that toggles between 1 and 0 for Pause/Play. Set the trigger to only send the 'pause' command when Pause=1 and OnAir=0 Your button would set Pause to 1 on press, 0 on release.

istnv avatar Jul 13 '23 06:07 istnv

Yes that's the way I used to do it. Gets very complicated very quickly. Was hoping that enable/disable could be data driven.

BryanCrotaz avatar Jul 13 '23 07:07 BryanCrotaz