Graphics

 View Only
  • 1.  Image in DataLinq .TXT document

    Posted 09-22-2014 12:41
    We're using datalinq to populate a crawl with tweets. Is there anyway to place an image (the Twitter logo) at particular points in the crawl, using some sort of shortcut entered int he text document?


  • 2.  RE: Image in DataLinq .TXT document

    Posted 09-29-2014 14:37
    What are you using as your Datalinq source?

    Does the Datalinq source provide an HTTP or file path to the images?

    Or do you just want a keyword to call up an image?

    #XPression


  • 3.  RE: Image in DataLinq .TXT document

    Posted 10-01-2014 17:56
    We're using a plain text document as our Datalinq source, which is stored on our network. I imagine that some kind of keyword typed into the .TXT document would work best, but we haven't figured out how to do it.

    #XPression


  • 4.  RE: Image in DataLinq .TXT document

    Posted 10-01-2014 21:57
    Hi Leslie,

    You can use a script like this to assign an image to an object. This script will take the content of the text object (the one you're Datalinq'd to) add .png to the end of it, retrieve the image from C:Images and assign it to a material shader.

    Dim PicFile As xpTextObject

    Dim Pic As xpBaseObject

    Dim PicMat As xpMaterial

    Dim PicShader As xpBaseShader

    Dim FilePath As String

    Self.GetObjectByName("Image Name", PicFile)

    FilePath = "C:Images" & PicFile.Text & ".png"

    Self.GetObjectByName("Picture", Pic)

    Pic.GetMaterial(0, PicMat)

    PicMat.GetShader(0, PicShader)

    PicShader.SetFileName(FilePath)

    #XPression