Graphics

 View Only
  • 1.  Control A Material Based On Datalinq Value

    Posted 07-31-2018 20:04
    Working on an interactive scene where fans will vote on something displayed on screen. They will be able to choose from three items. What I would like to do for the results is control some of the materials in the scene to visually highlight the winner. I have access to the total percentage of voters for a given item, and the total number of votes as well. How can I set something up to let me change a material based on who won.

    For example I would like to change the material from a white material to a green material if that item had the largest number of votes or percentage of votes.

    Can something like this be done?


  • 2.  RE: Control A Material Based On Datalinq Value

    Posted 07-31-2018 20:14


  • 3.  RE: Control A Material Based On Datalinq Value

    Posted 07-31-2018 20:20
    Looks like that could work. I have not dug into visual scripting yet, but this seems like a great time to do it. I will let you know if it works out. Thank you.
    #XPression


  • 4.  RE: Control A Material Based On Datalinq Value

    Posted 08-05-2018 14:49
    This can very much be done. I allready made something like this with voting for top 3 player of a hockey game.

    See this XPression U video:
    https://youtu.be/RamDBQHU3tU

    Gives you an idea and then go from there.
    Good luck! 😄
    #XPression


  • 5.  RE: Control A Material Based On Datalinq Value

    Posted 08-05-2018 17:47

    Thank you @astalsberg that helps! Appreciate it.

    SOLVED: I was able to get it working after watching that video. Thanks to both of you for the help. I was able to learn a lot from @garner's post and that video was very similar to what I needed for my setup. Attaching a image showing my solution.

    Quick walk through. I started by sorting the DataLinq values and used the descending order for the second Sort Selector.
    I set the inputs for the second sort selector to the materials I wanted to have applied to the background image for each of the songs.
    I set the second sort selector to "outputs use their position in the Sort Order to select an input.


    #XPression