Sports & Live Events

 View Only
  • 1.  Pausing and Resuming XPression with CC

    Posted 04-26-2021 12:55
    Hi all, 

    I am probably missing something obvious, but I'm looking to pause a video in XPression via a custom control in Dashboard, then resume it with a separate macro. Really struggling to figure this out. Anybody have any pointers for me?

    Thanks!

    ------------------------------
    Danny Wollner
    ------------------------------


  • 2.  RE: Pausing and Resuming XPression with CC

    Ross Staff
    Posted 04-26-2021 17:40
    Hi Danny,

    This needs to be done through scripting.  unless you are using server channels which I'm assuming you are not.
    • First make note of what channel and layer the video is playing on (0 = channel 1, 1 = channel 2 etc.)
    • Second make a note of the object in the scene on which the video is applied.
    • third go into the keyboard GPI map (Edit > Keyboard/GPI mapping) and create a new script action 
    • fourth assign a GPI number to the script in the far right column of the Keyboard GPI map


    The script to pause will look something like this:

    Dim channel as xpOutputFramebuffer
    Dim scene as xpScene
    Dim obj as xpBaseObject
    dim mat as xpMaterial

    Engine.GetOutputFramebuffer(0, channel)
    channel.GetSceneOnLayer(0, scene)
    scene.GetObjectByname("my object", obj)
    obj.GetMaterial(0, mat)

    mat.pause

    To Resume:

    Dim channel as xpOutputFramebuffer
    Dim scene as xpScene
    Dim obj as xpBaseObject
    dim mat as xpMaterial

    Engine.GetOutputFramebuffer(0, channel)
    channel.GetSceneOnLayer(0, scene)
    scene.GetObjectByname("my object", obj)
    obj.GetMaterial(0, mat)

    mat.play

    ------------------------------
    Andrew Sampson
    Ross Video
    ------------------------------