Giter VIP home page Giter VIP logo

Comments (8)

premultiply avatar premultiply commented on June 24, 2024

Right.

Most simple usecase is mapping of a simple tally input (boolean feedback or variable from mixer etc.) to a tally output (camera tally input, lamp etc.).

Today this simple operation is surprisingly complicated and needs at least two triggers for each tally channel for "on" and "off" without any further logic as already mentioned.

What is still missing (or is not obvious how it should work) is a simple direct mapping of a boolean state from feedback or boolean variable to true and false actions in one operation.

from companion.

hadphild avatar hadphild commented on June 24, 2024

Both Companion and Tally Arbiter are amazing projects. It would be really good if they could be combined together to get the Logic from TA to be added to the all switchers and camera modules in Companion. Like Feedback to the devices over connections. This could make tally very easy and make Companion even better.

Could there be a wizard for trigger to auto create the Tally stats. IE List all switchers and list all cameras and there numbers.

So in the triggers is auto does tally Red / Green on ATEM 1 and Green only Tally on Panasonic RP150 (PTZ Camera controller)

from companion.

Julusian avatar Julusian commented on June 24, 2024

I think this would be covered by #372 and #1052 . Does this include anything that wouldn't be solved by that?

My current thinking is to take inspiration from home-assistant for the ui. I don't have any screenshots in easy reach of that

from companion.

phillipivan avatar phillipivan commented on June 24, 2024

@Julusian I think there is some cross-over, and sorry I didn't find them, I was searching for things related to triggers.

There are some differences, which I think are as follows:

  • Triggers / Actions / Feedbacks. Though I appreciate whats done for one is likely done or practical to be done for the others.
  • I'm requesting a complete set of boolean operators, and ideally the ability to nest/chain them similar to the screen shot I provided.
  • Capacity to define actions performed when evaluation is false (though I see this is mentioned further down in #1052).

from companion.

dnmeid avatar dnmeid commented on June 24, 2024

On condition becoming false is available since a few versions.

With the condition internal: Variable: Check boolean expression you can already do everything you want and more.

You can compare and check as many variables as you want and tie all the evaluations with boolean logic. I admit that the only boolean operators are AND, OR and NOT. NAND and XOR would have to be expressed with them.
I've seen a lot of graphical solutions for complex boolean equations and I find none of them very pleasing. Companion is used mainly by average non-programmers who don't know about bool at all. Maximum thing I would suggest is the option of a top-level "all conditions" (AND) or "any condition" (OR). With everything finer grained control I suggest to stick with the expression based solution we already have.

from companion.

premultiply avatar premultiply commented on June 24, 2024

Unfortunately, this does not really help in terms of complexity, as it does not reduce the number of entries.

A single "Evaluate input condition" with two output branches is missing here: "If value (becomes) true, do this" and "If value (becomes) false, do this".
This would significantly help to reduce the complexity and the number of necessary configuration steps.

It would also be very useful to be able to use Boolean feedback directly as input instead of always having to use comparatively complicated variables. The actual data type or value range is often not clearly recognizable for the user and differs from module to module.

Of course, all of this is currently possible, but it is surprisingly complicated and not intuitive to realize, for example, a very simple direct tally assignment of a mixer input to a camera.

from companion.

Julusian avatar Julusian commented on June 24, 2024

My thinking for this (and more generally for #372 and #1052) is based around home-asssitant:
image

Which basically needs us to implement some building blocks such including:

  • an action which can be an if/else possibly with an arbitrary number of elseif
  • a feedback which can perform an AND using 1 or more other feedbacks as the 'options'
  • a feedback which can perform an OR using 1 or more other feedbacks as the 'options'

An argument could be made for also adding some 'when condition is false' actions to triggers, but the same can be achieved by using the if/else instead.

Perhaps something else to think about is a way to use a feedback in an expression, through some temporary local variable.

from companion.

phillipivan avatar phillipivan commented on June 24, 2024

For reference the #1 thing I use XORs for in that kind of system is turning momentary inputs (ie GPIs) into latching states; which is a common task for me.

from companion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.