Graphics

 View Only
Expand all | Collapse all

Datalinq Material or Image Grab

  • 1.  Datalinq Material or Image Grab

    Posted 12-28-2017 21:04
    Without trying to overly complicate this. I am trying to figure out how I can use Visual Logic to look at our Scoreboard Guest Team Name Abbreviation and pull the team logos based on that data.

    I have done something similar with Hockey, however I know all of those teams and created a visual logic for each team.

    With basketball, other then conference opponents, its different teams every year. So I would like to have the whatever is populated by the Datalinq field pull the corresponding material or image.


  • 2.  RE: Datalinq Material or Image Grab

    Posted 12-29-2017 15:26
    Honestly, it is probably easier to pull your logos from an excel sheet. A lot of the bigger networks do this and it works out great by datalinqing the logo material to a filepath taken from excel. Inside of excel though, you need to have a system built that can pull team specific logo paths based on their tricode or abbreviation. To do this in Visual Logic is really inefficient and could probably slow you down since VL constantly refreshes each frame
    #XPression


  • 3.  RE: Datalinq Material or Image Grab

    Posted 12-29-2017 20:31
    I have an Excel sheet setup for Hockey and it works great! Just for basketball in our building we hardly use Xpression so I was trying to make it as simple as possible which is why I was hoping to just pull the Abbreviation out of the scoreboard console.
    #XPression


  • 4.  RE: Datalinq Material or Image Grab

    Posted 01-04-2018 17:46
    I'm on the Excel spreadsheet bandwagon too. It sets my rosters, team abbreviations, backgrounds, logos, word marks. I have it named AWAY TEAM, and all I have to do is update the visiting team spread sheet and rename it.
    #XPression


  • 5.  RE: Datalinq Material or Image Grab

    Posted 01-04-2018 21:10
    Actually, you could use the 3 letter name of the team as a logic argument for every element you want. But this seems like much more work than just a spreadsheet.
    #XPression


  • 6.  RE: Datalinq Material or Image Grab

    Posted 01-04-2018 22:11
    I gave this a shot using the 3 letter school code as the variable. However I didn't use visual logic to assign. I made the 3 letter code part of a combo box text input and assigned columns for BG and LOGO so that as each 3 letter combo is selected, the correct BG and LOGO are assigned to the various objects in the scene. I used the combo box and the operator could just use the pulldown and scroll to the proper code and all elements would be set. If you tied the 3 letter code to a datalinq value from the scoring system then it would update automatically with the change. Let me know if this might work for you.
    #XPression


  • 7.  RE: Datalinq Material or Image Grab

    Posted 01-11-2018 17:46
    @malthepal I think that would work. Again we do so little with Basketball that if I can populate change out a stats screen and scorebug based on a datalinq value that would be awesome. I will play around with it today or tomorrow.
    #XPression


  • 8.  RE: Datalinq Material or Image Grab

    Posted 02-07-2018 22:40
    @jbins Instead of user input you could tie the 3 letter combo to the datalinq field.
    #XPression


  • 9.  RE: Datalinq Material or Image Grab

    Posted 02-19-2018 17:59
    @malthepal Trying this now, but struggling to think of how I would assign a material or image to the 3 letter combo on the quad that my scorebug lives at.
    #XPression


  • 10.  RE: Datalinq Material or Image Grab

    Posted 02-20-2018 14:35
    I do this for our local hockey team, only I do this all in DashBoard instead, as the JavaScript gives me more options when it comes to setting up the parameters to be sent accross DataLinq, though I guess the logic would be much the same.

    If the scoresheet says "team1", you would store an image in the assets folder that is names "team1.png".
    What you would need to do in visual logic is to grab the value from the scoresheet, and add ".png" to the end of that variable.
    #XPression


  • 11.  RE: Datalinq Material or Image Grab

    Posted 02-20-2018 17:13
    @jbins
    I will compile some pics of how I did it. I really think this could work for you. Stand by.
    #XPression


  • 12.  RE: Datalinq Material or Image Grab

    Posted 02-20-2018 17:56

    Ok, here is how I did it. In my test scene I have two quads to accept materials. They are "Team Logo" and "Team BG". The Text field "Team 3 letter" is a hidden text object tied to static text input but using a combobox for user input. In the picture you can see that on this 3 letter text field the "data Source" tab is open. This is where I set everything up. Here are the steps: 1) click Add button to add a data line. 2)Right click and "Add Column" for each of the quads that will accept the various materials. I have "bg" and "logo". Click "Assign Columns" to assign that column to a specific object in the scene. In my case I have assigned the column "bg" to the object "Team BG" and the column "logo" to "Team Logo" objects respectively. The "Description" column refers to the 3 letter text the operator will type, or select in the combo box or that will be read from a datalinq field. Once you have these columns laid out the rest is just data base management. In my example I have USU_BG, and USU_LOGO assigned if the text is USU. Let me know if this helps or we can even talk on the phone. It's pretty simple once you get the basic idea.


    #XPression


  • 13.  RE: Datalinq Material or Image Grab

    Posted 02-22-2018 17:43
    Thanks @malthepal I will give this a try!
    #XPression


  • 14.  RE: Datalinq Material or Image Grab

    Posted 02-27-2018 17:40
    Let me know if this works for you. These "mind exercises" keep me young.
    #XPression