-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
V3.5.1 Trigger not working correctly #3279
Comments
Good question! It may never have worked correctly as I did not call the button from another routine until the current work I have just completed! What way is it intended to be used? |
The issue you are hitting is that the release gets triggered immediately after the press. meaning the variable has only changed momentarily. And we are debouncing the variable changes, to avoid drawing and excess trigger executions when in situations like module startup and many variables are changing all at once in a short period of time. The code has been this way since 3.0 as far as I can tell.
I don't follow, each portion of this has its own uses, but its just when combined in this way that it doesnt behave quite as could be expected. I guess we could change the press and release action to have a customisable press duration? that would at least allow you to avoid this |
Interesting. So I have an array of buttons - 4 presets to each of 6 cameras. Press and release, the camera moves to the preset. Press and hold, and the preview fills the entire ATEM monitor until it is released. Since 3.3.1, or before, I have been able to use the following code on the preset button:
and then a release with a Set Variable C which resets the trigger and I have been able to call that with Press and Release from numerous pages and it has always worked. Now in 3.5.1 (and probably 3.5.0) the variables A and B are set correctly, and the recall happens but as we have found, variable C gets set and reset before the trigger detects it. So something has changed time wise to speed up that process. Does that make sense? (Variable C moves the preset into the ATEM Preview window) |
Then I guess I am doing something wrong with my testing, because I was getting the same behaviour in 3.2 as 3.5 yesterday. |
Hmmm...what I HAVE done, for better management of the code is to add a Logic: AND on the trigger condition.... could that be the cause? |
Here are the triggers and the two pages: the triggers you look at are called Auto - Preview - Camera x where x is the Camera number 1-6 Page 21 is the main screen with the 24 presets. Page 25 is the call to which I have explicitly added the variable C call (if that makes sense. |
I really can't see what you could have done differently to see different behaviour than my testing in 3.2 I've now tried 3.3 too, and still getting the same. For context, my full test setup is: the collapsed actions are irrelevant, just trying to pad things out to match what you had. If I press 1/1/4 directly, it works, but pressing 1/1/5 which simply triggers 1/1/4 it doesnt. Maybe you can spot what I have done differently? |
OK - here are the 2 offending pages and everything cut back. Page 1 has the button. Press it and look at the trigger Auto - Preview - Camera 1. Note the date and time. Now press next page, and press the button on the bottom line saying Test This. The trigger does not fire. D you get the same as me now? |
Where can I get Companion 3.3.1 to see what happens there with the old code? |
On a higher level, we need to have a differentiator between Press and Release and press followed by release. What options do we have? At the moment I have to code Trigger, wait, and then release for each button call. Bit of a pain but it seems to work. Can we slow the release action for, say, 250ms, to allow the trigger to action it? (250 works for me) |
Is this a bug in companion itself or a module?
Is there an existing issue for this?
Describe the bug
A difficult one to explain and it may be something stupid I am doing.
I have a button which has a press action set, and a release action set. The trigger action set sets a variable to 1 which calls a trigger. Releasing the button resets the same variable to 0. When the button is pressed all works well. When the button is called using the trigger press and release, nothing happens. Or at least the variable is set at 0 and the trigger has not executed, so maybe it's getting to 0 before the trigger recognises the change? So how do I make this call which worked fine in previous versions? If I split into 2 separate calls and add a wait it works, but is this what I have do do for every call to a button with a release action? Happy to be educated!
Steps To Reproduce
Expected Behavior
The trigger should action in the same was as when the button is pressed and as it worked in previous versions.
Environment (please complete the following information)
Additional context
No response
The text was updated successfully, but these errors were encountered: