Graphics

 View Only
  • 1.  Can Datalinq Key value come from a text field in the scene?

    Posted 09-15-2015 17:26
    Hi,

    I am using 2 different datalinq feeds to create a player stats fullscreen scene.

    They share the same player ID values.

    I can get the player ID from one data source on to a text field.

    Can I then use that player ID value to look up data on the second data feed?

    So my question is, can Datalinq Key value come from a text field?

    Is there a better solution?

    Thank you!!


  • 2.  RE: Can Datalinq Key value come from a text field in the scene?

    Posted 09-27-2015 19:15
    Here is a script that you can put into the OnOnline event of a scene that will look for a text object and copy the content of the text object to the Datalinq key value.



    dim source as xpTextObject

    dim keys as xpDatalinqKeys

    dim key as xpDatalinqKey

    'find the text object by name that the key value will come from

    self.getObjectByName("keyinput", source)

    'find the keys in the scene and find the specific datalinq key by name

    self.GetDatalinqKeys(keys)

    keys.GetKeyByName("datakey", key)

    'copy the content of the source text field to the datalinq key

    key.AsString = source.text

    'refresh datalinqs in the scene

    Self.RefreshDatalinqs()



    #XPression


  • 3.  RE: Can Datalinq Key value come from a text field in the scene?

    Posted 08-02-2017 21:26
    Is there an option for a script like this to work before online, so I can export out a fullscreen?
    #XPression


  • 4.  RE: Can Datalinq Key value come from a text field in the scene?

    Posted 08-02-2017 21:40
    Put the script in the OnBeforeOnline script event.
    #XPression


  • 5.  RE: Can Datalinq Key value come from a text field in the scene?

    Posted 08-02-2017 21:47
    Oh shoot I see you want this for export.
    In XPression 7.0, releasing next week we have a new script event that is called "OnExport".
    That's probably what you want.
    If you can't upgrade or need this ASAP you can put the script in OnRender and that will work for exports.
    BUT
    Do not leave the OnRender script enabled when you use the system on air, as OnRender scripts will run every field (twice a rendered frame) and have a good chance of clogging up the render pipeline and causing the output to stutter.
    #XPression


  • 6.  RE: Can Datalinq Key value come from a text field in the scene?

    Posted 08-03-2017 13:59
    Hmm OnRender doesn't seem to be working for me. It works OnOnline, but not OnRender. Do I have to change the script at all?
    #XPression


  • 7.  RE: Can Datalinq Key value come from a text field in the scene?

    Posted 08-09-2017 14:56
    Upgraded to 7.0 (thanks!) and still not having any luck with OnExport. (Or OnRender for that matter.)

    The script does work OnOnline, do I need to change my script for the OnExport event?

    dim source as xpTextObject

    dim keys as xpDatalinqKeys

    dim key as xpDatalinqKey

    'find the text object by name that the key value will come from

    self.getObjectByName("School2", source)

    'find the keys in the scene and find the specific datalinq key by name

    self.GetDatalinqKeys(keys)

    keys.GetKeyByName("TRI", key)


    key.AsString = source.text

    'refresh datalinqs in the scene

    Self.RefreshDatalinqs()
    #XPression


  • 8.  RE: Can Datalinq Key value come from a text field in the scene?

    Posted 10-25-2017 14:37
    Trying to bump this thread back up. This script works "OnOnline" but when copied over to almost any other event (OnExport, OnPreviewRender) it is not successful.

    Anyone have any ideas on what I might need to change so this works?
    #XPression


  • 9.  RE: Can Datalinq Key value come from a text field in the scene?

    Posted 10-27-2017 20:45
    On further try, the fourth image in a PNG sequence contains the datalinq'd image. The image never appears in an exported MOV.

    Is there any way for the script to export a single image or on the MOV?
    #XPression