scene is-triggered state


    Feb 09 2017 | 1:24 pm
    Hi, i would like to know when my current scene is launch so i observe the scene with the message is-triggered but nothing in reply ... any help ? :)

    • Feb 09 2017 | 3:04 pm
      Well first of all, you're not looking at a scene, you're looking at the live set's view, which does not have a property 'is_triggered'.
      Secondly, you'll need to define what 'current scene' and 'is launch' actually mean. Do you want the scene index of the playing scene? Or do you want to know when the selected scene is playing or launched (those are two different things, actually)? The above code will report a 1 if the selected scene is triggered to launch and a 0 if it is not (stopped or playing). If quantization is set to None, it will always report a 0, as it is never triggered only playing or stopped.
    • Feb 09 2017 | 4:41 pm
      thank you Evan, but nothing happen ...
    • Feb 09 2017 | 5:09 pm
      Yeah something definitely happens with that code. If the selected scene is triggered (i.e. waiting to play on the next quantization event) it will report a 1, otherwise it will report a 0.
      If you are firing a scene that isn't selected, it will report a 0.
      If you want more assistance, I'd need more concrete info than 'noting happens'.
    • Feb 09 2017 | 9:25 pm
      thank 's Evan for your attention, i do what you say : -quantization is 1/32 -i select a scene -i launch the selected scene nothing move in the patch, no bang, no 1
      IF i select the scene 4 (for exemple), i clic on the message path live_set view selected_scene i launch this scene = live.observer say 0 if i select an other scene, 6 for exemple, i launch this scene = live.observer say nothing if scene 6 is always selected, i launch the scene 4 = live.observer say 0
    • Feb 09 2017 | 11:00 pm
      1/32 is awfully quick, you're likely just missing the event. Use print to monitor. The patch works, I've verified it multiple times.