Graphics

 View Only
  • 1.  Text Macros updating with visual logic

    Posted 02-25-2020 17:41

    Attached you will see a picture of what I am working on.  Do not worry, this is just a proof of concept and not the final look.  In the center of the screen in the vertical numbers you will see 5 lines of numbers.  Top line is just a text box that is getting data from a simple dashboard counter that counts up.  The preceding next lines of text are visual logic to take that number and add to it (that is all of the visual logic on the scene).  Then I have a script that is using that number to look at an xml file to pull logos and text.  All of that is working.

    The problem exist, I want to leave the scene online and then update the "draft pick" in dashboard to then make it trickle down and update who the current pick is and on down.  It works every other number update.  So if dashboard is 12 like in the example, I can hit my dashboard counter up 1 and nothing changed except the vertical text boxes.  If I hit it again to make it 14 all 4 items update as expected.

    Here is the script that I am using, but this is simple because it is just placing logos.  And yes I know that I have extra in my script that is currently not doing anything, but I think that that is my hold up.

    The dropbox link is just to the XML, logos are not going to pull for you, but team names should update from the XML if someone can get this to update every number.

    https://www.dropbox.com/s/5uvgl78peakl830/Test%202-24-2020.xml?dl=0 

    	dim Team1, Team2, Team3, Team4 as xpTextObject
    dim Image1, Image2, Image3, Image4 as xpBaseObject
    dim Pick1, Pick2, Pick3, Pick4 as xpTextObject

    self.GetObjectByName("Logo 1", Team1)
    self.GetObjectByName("Logo 2", Team2)
    self.GetObjectByName("Logo 3", Team3)
    self.GetObjectByName("Logo 4", Team4)

    self.GetObjectByName("Image 1", Image1)
    self.GetObjectByName("Image 2", Image2)
    self.GetObjectByName("Image 3", Image3)
    self.GetObjectByName("Image 4", Image4)

    self.GetObjectByName("Current Pick 1", Pick1)
    self.GetObjectByName("Current Pick 2", Pick2)
    self.GetObjectByName("Current Pick 3", Pick3)
    self.GetObjectByName("Current Pick 4", Pick4)


    Image1.SetVolatileTextureFile(0, self.project.projectpath & "Images\1000x1000 with Shadow\" & Team1.text & ".png")
    Image2.SetVolatileTextureFile(0, self.project.projectpath & "Images\1000x1000 with Shadow\" & Team2.text & ".png")
    Image3.SetVolatileTextureFile(0, self.project.projectpath & "Images\1000x1000 with Shadow\" & Team3.text & ".png")
    Image4.SetVolatileTextureFile(0, self.project.projectpath & "Images\1000x1000 with Shadow\" & Team4.text & ".png")


  • 2.  RE: Text Macros updating with visual logic

    Posted 03-04-2020 00:39

    Hey Garrett,

     

    It look to me that you're trying to make it too complicated.

    I don't know if you have already checked XPression U, but I suggest that you have a look at the two videos below.


    https://www.rossvideo.com/gallery/setting-up-xpression-datalinq/
    https://www.rossvideo.com/gallery/video-tutorial-datalinq03/

    The first one will help you to set up your datalinq to easily link the data from your XML and the second video will help you to link the counter from Dashboard into the Datalinq.

     

    Have a look and see if this is what you're after. 


    #XPression