Graphics

 View Only
  • 1.  Editing DataLinq with Text

    Posted 10-07-2015 16:50
    Is there any way to insert text into a DataLinq input?

    I need to link to a folder of images, but the only thing I have available in my data source is up to 4 characters (e.g., for Dwayne Johnson, it would send me DJOH). I need to DataLinq that to an image directly on a shared drive (e.g., `C:/Images/DJOH.png`).

    Is there a way for me tin insert "`C/Images/`" and ".png" into the DataLinq location (e.g. `RACE/CANDIDATE_INFO/CANDIDATE/LAST_NAME`) so that it links to the image correctly?


  • 2.  RE: Editing DataLinq with Text

    Posted 10-13-2015 17:22
    Yes!

    Text Objects have a public property "Datalinq" which uses the xpDatalinq object, which has public properties to set the row, column, table, value, etc...You could fill in one of those properties as a string from a text object.

    So check out the xpDatalinq object in the SDK and let us know if you have any questions or need an example.

    #XPression


  • 3.  RE: Editing DataLinq with Text

    Posted 10-13-2015 19:41
    I have tried to figure this out. In my SDK help doc I do not see anything about xpDatalinq. I do see how to get/set xpDatalinqKeys and their name/value. But how do I set a text objects datalinq? ie: Column, Row, table,

    Is there an example of this? I am using version 5.7 Do I need version 6?

    #XPression


  • 4.  RE: Editing DataLinq with Text

    Posted 10-15-2015 15:50
    @Garner-

    Is there any way to embed that into the DataLinq? In my example, `RACE/CANDIDATE_INFO/CANDIDATE/LAST_NAME` I would need to insert `X:/2016ELEC/HEADSHOTS/` in front of the last name, and `.png` at the end of the last name. So it would end up:

    `RACE/CANDIDATE_INFO/CANDIDATE/%filepath%LAST_NAME%.png%`

    #XPression


  • 5.  RE: Editing DataLinq with Text

    Posted 10-16-2015 18:32
    Mike, the xpDatalinq was added in version 6.0 (well actually version 5.9-3158 to be specific).

    Dan, the only way I can think of to do that is to datalinq that to a text object and use an OnSetText script to add the path and extension. Then you could call xpBaseObject.SetVolatileTextureFile to take that complete image path and assign it to a quad in the scene.

    #XPression


  • 6.  RE: Editing DataLinq with Text

    Posted 11-10-2015 20:42
    What about using DataLinq keys? I would set up three keys, one for the race ID#, one for the filepath, and one for the .png?

    `RACE/CANDIDATE_INFO/CANDIDATE/%FILEPATH%PIC_ID%FILETYPE%`

    RACE_ID = number of race

    FILEPATH = X:/2016ELEC/HEADSHOTS/

    FILETYPE = .png

    #XPression