Graphics

 View Only
  • 1.  Datalinq RSS\JSON substitution

    Posted 10-10-2018 21:55

    I would like to add photo's to a few graphics in venue and the link that has been provided for me gives me a link to pictures. The problem I have is that these pictures are at a low resolution 60x60. There is a higher resolution folder so I am wondering if there is a way to tell Xpression to use this datalinq config, and pull this headshot, but from say a 480x480 folder instead of the 60x60 folder.



  • 2.  RE: Datalinq RSS\JSON substitution

    Posted 10-11-2018 15:23
    Through Visual logic I have the link that I want. Now can I use a text object to fetch in image for a quad object?
    #XPression


  • 3.  RE: Datalinq RSS\JSON substitution

    Posted 10-11-2018 18:50
    A script like this one on an OnSetText event or maybe OnOnline or OnBeforeOnline


    dim text as xpTextObject
    dim base as xpBaseObject
    dim FilePath as String

    Self.GetObjectByName("Text1", text)
    FilePath = Engine.ProjectPath & "Video\L3" & text.Text & ".avi"
    Self.GetObjectByName("Quad1", base)
    base.SetVolatileTextureFile(FilePath)"‹

    #XPression


  • 4.  RE: Datalinq RSS\JSON substitution

    Posted 10-11-2018 19:37

    @garner Sorry I am a little slow on this. I guess I am not sure where I would put the the actual text from text 1 into this script. The picture is what I have populating now.


    #XPression


  • 5.  RE: Datalinq RSS\JSON substitution

    Posted 10-15-2018 14:36
    @garner So this is what I did. I also tried to to do a material file name with no luck. Am I missing something?

    dim text as xpTextObject
    dim base as xpBaseObject
    dim FilePath as String

    Self.GetObjectByName("Goals1", text)
    FilePath = Engine.ProjectPath & "text"
    Self.GetObjectByName("GoalsPic1", base)
    base.SetVolatileTextureFileName(FilePath)"‹
    #XPression


  • 6.  RE: Datalinq RSS\JSON substitution

    Posted 10-15-2018 17:27
    Just got it after a lot of tinkering.

    dim text as xpTextObject
    dim base as xpBaseObject
    dim FilePath as String

    Self.GetObjectByName("Goals1", text)
    FilePath = text.text
    Self.GetObjectByName("GoalsPic1", base)
    base.SetVolatileTextureFile(0,FilePath)"‹
    #XPression


  • 7.  RE: Datalinq RSS\JSON substitution

    Posted 10-17-2018 19:27

    Next problem.

    Everything works, however when I switch teams to pull different images it will not refresh in sequencer. Is there anyway to force a refresh so often? This is the script that I have at ononline, before online and on PreviewRender.

    dim name1 as xpTextObject

    dim pic1 as xpBaseObject

    dim FilePath1 as String

    'Goals Leader 1'
    Self.GetObjectByName("name1", name1)
    FilePath1 = name1.text
    Self.GetObjectByName("GoalsPic1", pic1)
    pic1.SetVolatileTextureFile(0,FilePath1)

    dim name2 as xpTextObject

    dim pic2 as xpBaseObject

    dim FilePath2 as String

    'Goals Leader 2'
    Self.GetObjectByName("name2", name2)
    FilePath2 = name2.text
    Self.GetObjectByName("GoalsPic2", pic2)
    pic2.SetVolatileTextureFile(0,FilePath2)"‹"‹

    dim name3 as xpTextObject

    dim pic3 as xpBaseObject

    dim FilePath3 as String

    'Goals Leader 3'
    Self.GetObjectByName("name3", name3)
    FilePath3 = name3.text
    Self.GetObjectByName("GoalsPic3", pic3)
    pic3.SetVolatileTextureFile(0,FilePath3)"‹"‹



    If I go into layout and put it online it switches. Kind of an annoying.


    #XPression


  • 8.  RE: Datalinq RSS\JSON substitution

    Posted 10-17-2018 19:34
    Sequencer > Right Click > Datalinq > Refresh Datalinqs
    #XPression


  • 9.  RE: Datalinq RSS\JSON substitution

    Posted 10-17-2018 20:03
    Tried that with no luck.
    #XPression