Graphics

 View Only
  • 1.  Timed group countdown

    Posted 06-21-2019 07:24

    We are looking for a solution to display the countdown for all scenes that are present in a timed group. When we take the group on air we would like to know how long it takes until the end.

    Does anyone have a solution for that?



  • 2.  RE: Timed group countdown

    Posted 06-23-2019 01:43

    Hey Vincent,

    I'm not sure if this is any help but when you right click on the columnheaders in the sequencer (such as Scene, Name, Content etc...) you will get a popup where you can select "Columns" and then see all the available columns that you can add to the sequencer.

    One of them is "Countdown" which, once added at the back of the list, will show you the individual countdowns if I'm correct.

    See if that is what you're looking for?

     

    Cheers,

    Ken


    #XPression


  • 3.  RE: Timed group countdown

    Posted 06-24-2019 14:12

    Hi Ken,

    That countdown is only related to the scene that is currently playing. What I need is a countdown of the whole group.

    Do you know if it is feasible through a script?

     

    Thanks

    Vince


    #XPression


  • 4.  RE: Timed group countdown

    Posted 07-08-2019 16:14

    I've found a solution for it:

     

    dim scene1, scene2, scene3 as xpScene
    dim s1sd, s2sd, s3sd as xpSceneDirector
    dim s1fr, s2fr, s3fr as Long
    dim fr2ms as Long
    dim countdown as xpBaseWidget
    fr2ms = 40 'milliseconds per frame

    engine.getWidgetByName("Countdown", countdown)
    engine.getSceneByID(1, scene1)
    engine.getSceneByID(2, scene2)
    engine.getSceneByID(3, scene3)
    scene1.getSceneDirectorByName("SceneDirector1", s1sd)
    scene2.getSceneDirectorByName("SceneDirector1", s2sd)
    scene3.getSceneDirectorByName("SceneDirector1", s3sd)
    s1fr = s1sd.duration
    s2fr = s2sd.duration
    s3fr = s3sd.duration
    fr2ms = (fr2ms * (s1fr + s2fr + s3fr))

    countdown.TimerValue = fr2ms
    countdown.start

     

    But this works only if all the scene IDs exist. Is there a way to do the math even when there is no scene present and skip it?


    #XPression