Graphics

 View Only
  • 1.  Self.Offline

    Posted 12-15-2013 02:28
    What am I doing wrong?

    Dim i as Integer

    Dim OffScene as xpScene

    Dim OffAnimCtrl as xpAnimController

    Dim FB as Integer

    Dim Layer as Integer

    Dim OutputFB as xpOutputFrameBuffer

    Self.GetOnline(FB, Layer)

    Engine.GetOutputFrameBuffer(FB, OutputFB)

    For i = 0 to 100

    If OutputFB.GetSceneOnLayer(i, OffScene) then

    OffScene.GetAnimControllerByName("AnOut", OffAnimCtrl)

    OffAnimCtrl.Play

    End If

    Next i

    Self.SetOffline




  • 2.  RE: Self.Offline

    Posted 12-15-2013 22:34
    Which script event is this on? OnOnline, OnOffline, or OnBeforeOffline?

    It looks like this script is trying to loop over 100 layers and play the AnOut animation controller from every scene on every layer.. Then the script that contains this script will be taken offline.

    Not sure what you are intending it to do though..

    #XPression


  • 3.  RE: Self.Offline

    Posted 12-15-2013 22:37
    If any scene on any layer is doesn't have an AnOut animation controller this script will fail and exit.

    When calling GetanimControllerByName then doing a .Play afterwards, you should always have an if statement incase it can't find the anim controller.

    Like this:



    if OffScene.GetAnimControllerByName("AnOut", OffAnimCtrl) then

    OffAnimCtrl.Play

    end if



    #XPression


  • 4.  RE: Self.Offline

    Posted 12-16-2013 00:54
    That works very nice! Thank you Brian.

    I guess what I'm ultimately trying to do is when the TD hits "Take Next" on the board it will will take current

    scene offline and play the next scene, reducing one button push.

    When I have to full pagers back to back I have black on air until the TD pushes Take Next. Does that make sense?

    #XPression


  • 5.  RE: Self.Offline

    Posted 12-16-2013 14:52
    There are probably ways to accomplish this without scripting. Try using the Keyboard Mapping menu to set up a custom keyboard shortcut that can perform multiple sequencer items with a single keystroke.

    For example if you want to Resume a pause on the currently focused item, then move to the next item and "Take" it to air, you can do this by creating a "Group" in the keyboard shortcut menu and adding two "Take" commands to the group. You can configure for each Take action whether you want it to advance the sequencer to the next item or not. On the group make sure you enable the "Run all Children Actions when group triggered" checkbox.

    Then assign a Shortcut key to the group, and that key will now essentially hit Take twice in a row.

    There will be a video tutorial on the keyboard mapping menu made available very soon at this link:

    http://www.rossvideo.com/graphics-system/xpression/xpression-u/index.html

    #XPression


  • 6.  RE: Self.Offline

    Posted 12-16-2013 16:27
    That would be great but the Technical Directors are using a Ross switcher board. Can you have the custom keyboard keys reflect what goes on the board with a custom key? Right now we have a custom key on the board set up for take next and cut to video.

    All my full page graphics are on the same layer, so a script that:

    1. Before offline check next scene's layer

    2. If it is on the same layer as the current scene then take current offline and play next

    #XPression


  • 7.  RE: Self.Offline

    Posted 12-18-2013 13:53
    Hi Darren,

    As far as the switcher question -- in the Keyboard mapping of the XPression you can assign a "GPI" to the group as well. If you assign a RossTalk GPI board and number then the switcher can send the RossTalk GPI trigger instead of the Next command when they press that button.

    Les

    #XPression