[Solved] Session Box Listener
Hi John, could you confirm that the Session Box Listener works only in conjunction with Session Box Navigation?
I mean if I move the Session Box by Reaction’s script, the Listener doesn’t work. Is it intended?
–
–
–
Solution edit: here is the script to add to the Navigation Reaction
self.call_script_reaction(active_mode, None, 'session_box_position')
That’s correct, the listener will not automatically work if you’re using a Reaction to move the session box.
If you want the listener to fire when you move it via a Reaction you would need to also add the method call for the session box listener:
self.call_script_reaction(0, None, 'session_box_position')
– The zero inside the parenthesis is the mode order number (counting from zero) in the ‘modes’ view of the script editor. So if you’re applying this to the first mode in the list, leave it as zero and so on.
– ‘None’ can stay as is.
‘session_box_position’ is the name of the listener.

That’s correct Glenn 🙂

If you don’t mind, could one of you post an example how to use this function?
I tried putting it in Listener or Action without success.

You should be able to put it in an action which is set to custom.
self.call_script_reaction(0, None, ‘session_box_position’)
Just make sure that you have correct active mode number set as the first parameter (0 in the example).

Hi John, thx.
Do you put this action in the Session Box Navigation’s reaction or in the Session Box Listener’s reaction?
I tried both but no result.
btw, I can’t upload a file on this thread. Please let the author of the thread post answer, not only comments.

Put it in the Action Block > Action section of the reaction which you are using to move the session box. Knob/button etc
P.s. I have now enabled authors posting answers.

Hi John, it works when replacing the “0” argument by “active_mode”.

And thx for the forum improvement!
Sign up
User registration is currently not allowed.
Cool! I didn’t know about this function. Am I getting this correct:
The function calls upon the mentioned Listener which activates all Reactions that use this Listener?