Graphics

 View Only
  • 1.  Knowing when all Datalinqs are upto date

    Posted 09-07-2020 15:53

    Hi

    I have an issue, that is more apparent on a slow machine, where the Datalinqs in a scene are still updating when the scene comes online.  I need to do some processing of the datalinq data before the scene actually goes online, but as I can't be sure the data is fully accurate I get strange results. Is there a way to know that all scene objects with datalinq bindings are up to date?  Cueing a scene before taking it online doesn't help.

    The data is being pulled from an Excel spreadsheet.

    Can a scene go online if there are still outstanding datalinqs waiting to be refreshed?

    Thanks

    Simon



  • 2.  RE: Knowing when all Datalinqs are upto date

    Posted 09-23-2020 23:18

    I have the same question, where in the scripting interface can we know for sure that all Datalinq fields in the scene are done updating? We have a few scenes that need to script (in the scene scripting areas) on Datalinq fields and the updates need to happen before the script runs. They update correctly like 90%+ of the time, but randomly there will be a few fields that don't seem to get updated and turn up blank (we've checked the data and it's good). Trying to script in OnPrepare, OnPreview, and OnOnline and they all seem to have the same issue, but again, not in any consistent way. It would be better if there were an option to wait before rendering/previewing/taking online until all Datalinqs are done, even if it means a delay that's better than putting up blank or outdated information.


    #XPression


  • 3.  RE: Knowing when all Datalinqs are upto date

    Posted 09-24-2020 08:09

    Hi Ben

    I got around the problem by having less Datalinqs that needed updating.  I'm dragging data from a spreadsheet to generate a leaderboard, and had position, name, picture, team and score for 10 players. That's 50 things that need to update.  In my spreadsheet I created a cell that concatenated all the data for a player into one string and used the pipe | symbol as the delimiter. Then in the scene had 10 text boxes that are datalinqed to these combined cells. In the Scene Online event I then pulled it all apart again and populated the items in the scene. Although it appears I'm doing more work, that work seems to be done more quickly than all the datalinqs updating directly.

    The other way is to put your script into a scene director that runs when your scene goes online. That way you can drag the script down the timeline a frame or 2 to give you more time.

    Ultimately though, the original question of knowing when all the datalinqs are updated still holds!

    Hope this helps,

    Simon


    #XPression


  • 4.  RE: Knowing when all Datalinqs are upto date

    Posted 09-24-2020 16:58

    Hi Simon, thank you for the reply and suggestion. It's funny you mention packing multiple data bits together in one string because that's exactly what we're doing for another show, we're even using the pipe character as a separator (unpacking into an array in a script using the VBScript split function). In that case we were doing it to simplify moving data from a Google Sheet CSV. But I hadn't thought to try it to cut down on Datalinq calls. In this case it's a sports player card which only has 20 Datalinqed items, but maybe that's it, it's just getting overloaded and can't always process all the Datalinq fields in time. So thank you, I will try it and see what happens.


    #XPression