bitfocus / companion

Bitfocus Companion enables the reasonably priced Elgato Streamdeck and other controllers to be a professional shotbox surface for an increasing amount of different presentation switchers, video playback software and broadcast equipment.
http://bitfocus.io/companion
Other
1.47k stars 489 forks source link

Add support for variables in action/feedback inputs #960

Closed GeoDerp closed 2 months ago

GeoDerp commented 4 years ago

Describe the feature

Allow the ability to use dynamic variables in other modules.

Usecases

Image Example

Screen Shot 2020-01-10 at 4 25 56 pm

Example is using Qlab's Dynamic Variable (of time left in a video) to set the ProPresenter clock to the time remaining, and start it.

This is so the user doesn't have to fiddle around with the clock to get the precise time every time a Qlab video is playing (our Qlab videos all have different lengths)

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label Enhancement to this issue, with a confidence of 0.99. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

krocheck commented 4 years ago

This will have to be carefully thought through. An on-the-fly change to config isn't supported and would require an additional tracking layer and firing mechanism. Doable, but not simple.

willosof commented 4 years ago

Yeah, this is something we need to consider for the new design. Should be fairly easy to implement as long as we make a generic variable engine that everything needs to go through. :)

willosof commented 4 years ago

If it's a numeric input, we should support math as well :) floor($(inst:var)/2)+1 etc. Also, you should have the option to resolve the expression dynamic or "right now" :)

mcondie65 commented 4 years ago

Being able to do math's would be fantastic. You could add a command in the advance to specific slide secion $(propresenter:total_slides)-$(propresenter:current_slide) which would allow you to skip to the next section in your ProPresnter playlist

Julusian commented 2 months ago

This needs to be done per module, and there is another task to look at supporting expressions in these fields #2345