Graphics

 View Only
  • 1.  XPression Visual Logic & GPI Triggers

    Posted 12-20-2022 00:06
    I'm looking to have a layer in a scene where I can enter a GPI number that I want fired off when the scene goes online, and that number would be a published item that can be changed.  If blank, it would do nothing.  I didn't think there was a way to do this using the scene director, since I don't know that there's a way to use a variable for the Rosstalk event.

    Is there a way to do this with Visual Logic?  I'm not too knowledgeable with actual scripting to build from scratch. 

    Any help is greatly appreciated!

    -Aaron


  • 2.  RE: XPression Visual Logic & GPI Triggers

    Ross Staff
    Posted 12-21-2022 20:48
    Aaron,

    Visual Logic doesn't have access to the Ross Talk/Smart GPI board to be able to send a message. The easiest way to do this is with scripting, and the good news is it's fairly straightforward, especially if you know at least where to find scripts and how to execute them. You can put a script on the OnOnline event of the Scene Object that reads a Text Object, and sends out that text as part of your GPI message string. Below is an example where I'm sending out a message that reads GPI 44, based on the text "44" being entered into the scene. GPI Board 1 is called on as it's index value of 0 when having the engine Get the GPI Board. If you're trying to send out a message on GPI Board 2, you'd use the index value of 1 in the script, etc.


    Here is a copy of that script you're welcome to use and customize to fit your needs:

    'get GPI Board 1
    dim gpiboard as xpGPIBoard
    engine.GetGPIBoard(0,gpiboard)
    'get text object
    dim text as xpTextObject
    self.GetObjectByName("Text",text)
    gpiboard.SendMessage("GPI " & text.Text)


    ------------------------------
    Jeff Mayer
    Ross Video
    ------------------------------



  • 3.  RE: XPression Visual Logic & GPI Triggers

    Posted 12-22-2022 00:47
    Thank you, Jeff!!  This would be great, but I just learned that the Graphite version of XPression doesn't let me do scripting, which is a shame.  I do appreciate your response though, I would love to be able to put this to use.  Do you know if there are any plans to add the ability for visual logic to access the Smart GPI boards in the future? 

    -Aaron

    ------------------------------
    Aaron Rice
    WTVO/WQRF/My Network TV
    ------------------------------