Graphics

 View Only
  • 1.  Restart running sequence

    Posted 07-24-2019 14:06

    In my sequencer, I have a number of groups of timed scenes, which play sequentially - each looping group has several pages, each page plays for several seconds. All of these looping groups run on channel 2 of the Xpression. 

    On channel 1, I have a dynamically linked name key (most of the time), and the Carbonite switcher has a custom control which flips between the name (CH1) and context sequence (CH2). As sometimes when flipping from KEY1 to KEY2 the sequence may be about to transition to its' next page - which can be visually jarring, I would like to ensure that doesn't happen.

    I have the FLIP CC on the Carbonite sending a GPI to the Xpression. I'm looking for how I could write the GPI script that would check what the currently playing group is on CH2, and restart it, prior to my transition.

    I do have other GPOI scripts running successfully to start and stop timers, but I haven't figured this out yet.



  • 2.  RE: Restart running sequence

    Posted 07-29-2019 03:08

    You can use the xpOutputFramebuffer.GetTakeItemOnLayer to get a handle to the take item playing on a given layer on channel 2.  Then from that TakeItem it returns, you can use xpTakeItem.GetGroup to find the group that contains that take item, then take the item offline, then trigger the group to play again using the xpTakeITemGroup.Execute method.

    Hope that helps enough to get you going.


    #XPression


  • 3.  RE: Restart running sequence

    Posted 07-30-2019 13:27

    Thanks Brian - it's been some time since I did any programming, so I have to confess it took me a large portion of the day to slowly figure it out, and get the debugger working for me so I could see the ID values of the scenes and groups being returned. I am now pleased to say I have a short script which checks if the active scene belongs to one of a number of possible scenes I am looking for (held in an array), and if so, it restarts it.

    I decided to simply restart instead of taking it offline first, so it is visually seamless, but it does restart the timer, which serves my goal. I am calling the GPI from dashboard under specific conditions, and it works perfectly!


    #XPression