Graphics

 View Only
  • 1.  Visual Logic to change a background on full screen

    Posted 11-02-2023 14:51

    So, I have a sports scene that will be used to compare two players.

    The images used will be inserted through Streamline and they use metadata fields to specific things like their names, what team they play for and and what sport they play. (colleges could have multiple sports).

    I have the strings from those metadata fields parsed to individual text boxes (that are hidden).

    I would like to compare the two strings and IF they are EQUAL then pass that value to another text used to select a background based on their sport (i.e., football, hockey, basketball, etc.).

    If those strings are NOT identical (i.e., one is a basketball player and the other a football player), then the background would be blank.

    I have it functioning off either of the separate texts but how do I set up a compare for something like this?



    ------------------------------
    Kenny Meade
    ------------------------------


  • 2.  RE: Visual Logic to change a background on full screen

    Posted 11-02-2023 15:00

    In the "Strings" section of Visual Logic is a module "String Compare". That's what you need.



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------



  • 3.  RE: Visual Logic to change a background on full screen

    Posted 11-02-2023 15:27
    I tried this, but it doesn't seem to work. It only selects the background based on the SPORTS 1 text.


    ------------------------------
    Kenny Meade
    ------------------------------



  • 4.  RE: Visual Logic to change a background on full screen

    Posted 11-02-2023 15:39

    I think I figured it out. You use ORDINAL not LESS. Duh.



    ------------------------------
    Kenny Meade
    ------------------------------



  • 5.  RE: Visual Logic to change a background on full screen

    Posted 11-02-2023 15:43

    Now that doesn't seem to work. It worked one time, then stopped.



    ------------------------------
    Kenny Meade
    ------------------------------



  • 6.  RE: Visual Logic to change a background on full screen

    Posted 11-02-2023 16:00
    This seems to work


    ------------------------------
    Kenny Meade
    ------------------------------



  • 7.  RE: Visual Logic to change a background on full screen

    Posted 11-02-2023 16:58

    I'd recommend two backgrounds. The blank one and a sports background.

    Use the compare to make the proper one visible.

    Regardless of which one is visible, use the first sport field to pick the background.

    To simplify the input selector, try looking at this:

    https://rossvideo.community/discussion/simplified-chosen-item



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------