Assigning a button to toggle between session/arrangement

74 viewsCSS Questions
0

Hi I’m making a reaction to assign a button to toggle between session and arrangement views.
I can only make it work one-way, if I add another condition or another reaction to show the opposite view, only the later one works.

can someone please show a working example of such reaction?
thanks

admin Changed status to publish May 22, 2024
Attached Files:
0

Hi,

Show your Action, this is fixable. Nomally you forget the return after the first Action and its condition.

admin Changed status to publish May 22, 2024
Attached Files:
0

Please check screenshots, these are two individual reactions I tried.
They both have the same Listener “Button is pressed”.
The first one goes straight to action to change view to Arranger,(which works) while on the second I’m trying to set the conditions depending on the view, but that one won’t work.

admin Changed status to publish May 22, 2024
0

Referencing file 2:

Listener button as you have it

Actionblock 1:
Condition as you have it
Action 1 as you have it
New Action 2: exit reaction (custom code: return)

Then copy that Actionblock mirror it the other way.

Your problem: after the first Actionblock you need a return to exit the reaction so that the Action triggers the next time you press the button.

In your current script Actionblock 2 follows happily Actionblock 1 because all the conditions are met. The moment Actionblock 2 starts your session view has already changed as Actionblock 1 is completely resolved.

admin Changed status to publish May 22, 2024
Attached Files:
0

wow I’m stunned.
Thanks so much dude, cheers!

admin Changed status to publish May 22, 2024
Attached Files: