Graphics

 View Only
  • 1.  Trigger Sequence from Datalinq Value

    Posted 06-02-2022 02:02
    What is the easiest way to trigger a sequence playback from a particular value in a Datalinq field? Is this even possible? I've got Visual Logic working, using values from the same Datalinq file to display certain results as they appear (and hiding those that are not needed). But I'd like to have the entire scene Take Online when a certain Datalinq value appears (and hopefully Take Offline again when another value appears).

    ------------------------------
    Andrew Fraser
    Hudor Visual
    ------------------------------


  • 2.  RE: Trigger Sequence from Datalinq Value

    Posted 06-02-2022 08:53
    Will there be another scene that's online all the time or is this all handled in one scene. 

    For example perhaps you have a bug or a logo or some other scene that's always online. 

    Even if you don't you can just have an "empty" that I would call a "control scene" that you can even lock online if needed. 
    This will have the value linked to datalinq with onsetscript that looks like this; 

    if self.text = 1
    Engine.GetSceneByName("yourSceneName", Scene)
    Scene.SetOnline(1,0,0)
    else 
    Scene.SetOffline
    end if


    The downside with the above method is it takes the actual scene online from the layer side and not a copy from the sequencer so you could also look at something like; 

    dim takeItem1 as xpTakeItem

    if self.text = 1
    engine.Sequencer.GetTakeItemByID(20010, takeItem1)
    takeItem1.Execute
    else 
    takeItem1.SetOffline
    end if

    This will actually take a copy of the template on which is more likely what you want.

    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 3.  RE: Trigger Sequence from Datalinq Value

    Posted 06-05-2022 04:21
    So it kind of works, I had it working perfectly then when I turned off the computer and tried it again today it suddenly doesn't act the way it should. It's reading a JSON file with Betting Data, and based on the Status is displaying one of four different graphic scenes.

    This is my code, its on a blank page and I've made a piece of text which is linked with Datalinq to the Status field in the JSON file. I've tried having four pieces of text, one for each of the page cues along with trying to combine all the code onto a signal piece of text.

    Do you have any suggestions to make this more reliable at all, or any mistakes with the code? I've also tried having the page online, but even with the page offline it seems as soon as I've imported it to the Sequencer it makes the code active by itself? In Sequencer I've also got all four scenes along with the auto scene in the one group too.

    Code on Text #4 
    dim takeItem4 as xpTakeItem

    if self.text = "Paying"
    engine.Sequencer.GetTakeItemByID(204, takeItem4)
    takeItem4.Execute
    else
    takeItem4.SetOffline
    end if


    Code on Text #3
    dim takeItem3 as xpTakeItem

    if self.text = "Interim"
    engine.Sequencer.GetTakeItemByID(203, takeItem3)
    takeItem3.Execute
    else
    takeItem3.SetOffline
    end if


    Code on Text #2
    dim takeItem2 as xpTakeItem

    if self.text = "Interim"
    engine.Sequencer.GetTakeItemByID(202, takeItem2)
    takeItem2.Execute
    else
    takeItem2.SetOffline
    end if


    Code on Text #1
    dim takeItem1 as xpTakeItem

    if self.text = "Normal"
    engine.Sequencer.GetTakeItemByID(201, takeItem1)
    takeItem1.Execute
    else
    takeItem1.SetOffline
    end if



    ------------------------------
    Andrew Fraser
    Hudor Visual
    ------------------------------



  • 4.  RE: Trigger Sequence from Datalinq Value

    Posted 06-06-2022 09:45
    Is it just 1 field of data you are using where you get each of these words from and they change or is if 4 different locations?

    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 5.  RE: Trigger Sequence from Datalinq Value

    Posted 06-06-2022 19:45
    It is one field of data from a single JSON file, that these 4 words are linked to with the individual codes as I posted before.

    ------------------------------
    Andrew Fraser
    Hudor Visual
    ------------------------------



  • 6.  RE: Trigger Sequence from Datalinq Value

    Posted 06-07-2022 06:03
    in that case you onlu need 1 item connected to the dayalinq and then code on that 1 item something like this; 

    I am assuming here that takeitem2 and 3 are on different layers btw and you want them on at the same time. 
    I do have the issue you have though which is when it previews the graphic is triggers the script, I may have a way to stop this but i need to build some other graphics today so will have to come back to you. 

    dim takeItem1, takeItem2, takeItem3, takeItem4 as xpTakeItem

    engine.Sequencer.GetTakeItemByID(204, takeItem4)
    engine.Sequencer.GetTakeItemByID(202, takeItem3)
    engine.Sequencer.GetTakeItemByID(203, takeItem2)
    engine.Sequencer.GetTakeItemByID(201, takeItem1)


    if self.text = "Paying"
    takeItem4.Execute

    takeItem3.SetOffline
    takeItem2.SetOffline
    takeItem1.SetOffline
    else if self.Text = "Interim"
    takeItem2.Execute
    takeItem3.Execute

    takeItem4.SetOffline
    takeItem1.SetOffline
    takeItem2.SetOffline
    else
    takeItem1.Execute
    takeItem2.SetOffline
    takeItem3.SetOffline
    takeItem4.SetOffline
    end if

    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------