Graphics

 View Only
  • 1.  Xpression: Showing Chicklets on Scorebug

    Posted 06-02-2021 15:21
      |   view attached
    I am trying to take this Scorebug "attached" and have the timeouts disappear using Datalinq.
    I already made each Chicklet "yellow square" its own material and know there has to be a way with Visual Logic
    I just cannot seem to get the result I am looking for.

    Example: If the SHARKS have 2 timeouts remaining, the value from Daktronics Datalinq will be "2" and I would want to have the 3rd chicklet disappear. 

    Thanks again in advance



    ------------------------------
    Tristan Morhous
    GEMSTONE MEDIA
    ------------------------------


  • 2.  RE: Xpression: Showing Chicklets on Scorebug

    Posted 06-02-2021 20:28
    I cant say how it's done by script, but if you want to do this by Visual logic. What you can do is use an input selector block, fred the index input the dactronics data, feed it four string values (000, 100, 110, 111), then use the output you get from the input selector, use the mid string block to grab the individual values from the resulting string, and then use them to toggle the visibility of each Chicklet

    ------------------------------
    Aleksander Stalsberg
    Lillehammer Icehockey Club
    ------------------------------



  • 3.  RE: Xpression: Showing Chicklets on Scorebug

    Posted 06-03-2021 01:39
    Tristan,

    The mid string block would certainly work that Aleksander posted would certainly work well. One of the great things about visual logic is there's usually several different ways of achieving a desired result. 

    Here's another way to come at the Visual Logic using fewer blocks. Evaluate your Timeout text object field to see if its value is Greater Than or Equal to 3, 2 and 1. Then use the result of those logic blocks to control the visibility of your 3rd, 2nd and 1st Timeout "chicklet" objects.


    Good luck!

    ------------------------------
    Jeff Mayer
    Ross Video
    ------------------------------



  • 4.  RE: Xpression: Showing Chicklets on Scorebug

    Posted 06-03-2021 06:03
    That's also a geat sollution to it (and less work). 

    Follow up question, what type of value does a <= block expect? The reason I did what I explained above is I ran into problems with that block not reacting as expected with different values inserted.

    ------------------------------
    Aleksander Stalsberg
    Lillehammer Icehockey Club
    ------------------------------



  • 5.  RE: Xpression: Showing Chicklets on Scorebug

    Posted 06-03-2021 06:21
    It will accept boolean, Integer, float or string (assuming the string is a number).

    ------------------------------
    Simon Redmile
    Ross Video
    ------------------------------