Graphics

 View Only
  • 1.  Publishing a Clock Timer

    Posted 02-03-2016 08:11
    I am trying to include a Clock Timer (a two minute warning countdown for several topics in a row) in a template published to my project server. In my Xpression Studio Sequence, I have had good success with setting the timer to start with CTRL1 and reset when offline, but if I publish the template and play it from my Remote Sequencer on the Studio box and set the timer to start when online and reset when offline, the timer never fires. I've included this script in OnBeforeOnline:

    dim widget as xpClockTimerWidget
    engine.GetWidgetByName("ClockTimer1",widget)
    widget.action=widget.action.reset

    ...and this script in OnOnline:

    dim widget as xpClockTimerWidget
    engine.GetWidgetByName("ClockTimer1",widget)
    widget.action=widget.action.start

    Is this even possible through the Remote Sequencer?


  • 2.  RE: Publishing a Clock Timer

    Posted 02-03-2016 13:46
    I've never seen widget.action=widget.action.start before.. Why not just call widget.start?

    #XPression


  • 3.  RE: Publishing a Clock Timer

    Posted 02-03-2016 14:25
    I think your script should be like this:

    OnOnline:
    dim widget as xpClockTimerWidget
    self.project.getwidgetbyname("ClockTimer1", widget)
    widget.start


    You need to use self.project.getwidgetbyname instead of engine.getwidgetbyname. This is because in a remote sequencer workflow the project with the widget may not be the active project.

    There is also no need for the OnBeforeOnline script. You could just call widget.reset immediately before widget.start like this:

    OnOnline:
    dim widget as xpClockTimerWidget
    self.project.getwidgetbyname("ClockTimer1", widget)
    widget.reset
    widget.start


    #XPression


  • 4.  RE: Publishing a Clock Timer

    Posted 02-05-2016 16:40
    Your script worked beautifully! Thank you, yet again.
    #XPression