Graphics

 View Only
  • 1.  Font color - Data driven

    Posted 01-23-2025 14:18

    As ESPN CBB bugs "chase" team color backgrouds, therefore all the team font colors change to a Primary or Alt Swatch Color selected via datalinqed to excel. 

    Is this only possible to change font color (data driven) through Scripting? 

    I'd like to implement this in our local productions. 

    Thanks!



    ------------------------------
    JOSHUA KEAGY
    Xpression operator
    Blue Ridge 11
    ------------------------------


  • 2.  RE: Font color - Data driven

    Posted 01-23-2025 16:40

    There's a couple of different ways that don't involve scripting!

    What are some scenarios that you would see wanting to utilize it with?



    ------------------------------
    Zachary Fradette
    United States
    ------------------------------



  • 3.  RE: Font color - Data driven

    Posted 01-24-2025 14:25

    Awesome. 

    When the Home/Away team is wearing a white Jersey instead of their normal colors, I'd like to change the color of all the font that is over the light background to the teams "primary" color in the bug. Since there is multiple fonts in the bug (School Name, score, fouls, Pos, etc..) I didn't if there was smart way to change all of them at once. 

    Hopefully that makes sense



    ------------------------------
    JOSHUA KEAGY
    Xpression operator
    Blue Ridge 11
    ------------------------------



  • 4.  RE: Font color - Data driven

    Posted 01-24-2025 15:42

    Yeah! I've got 2 main ways that I prefer to change text color using visual logic.

    Way #1 would be what I use within a setup scene. Because Materials are PROJECT WIDE, if we change a Font Material within Visual Logic, that will apply to the whole material, the whole font, and the whole project. We can use that to our advantage in a scene where I want to set specific font colors for the team as a whole. Maybe, in more than one scene, I'd need to swap from white text to a colored text.

    The image shows the use of a string value into a Font Material Diffuse block in order to change the text color
    In this example, you see that I grab the first material within the Font, then dive into the Layer1>Colors>Diffuse. You can use the color blocks within VL if you'd like, though you can also just directly set a hex code with it!
    Way #2 would be useful if within a single scene I wanted to flip between (maybe a couple different choices) without changing anything else!
    In this Visual Logic sequence, I'm using a value block to change between the names of Materials that I'd like to use. That Value block should be changed to be whatever you want. It could be "White/Non-White" or a String Match block that has "White, Black, Primary, Secondary, Tertiary" etc. However you choose to do it! From there, I translate that 'value' into an Input Selector to choose the correct Material Name, then I use a 'display' text object and a 'real' text object with some material tags.
    The Format String block alows me to create a pattern that I can fit my 2 variables into. In this case, I want my Material name to be added in along with the "real text" text. Within the Format String block, I use this pattern:
    ' vvv-This is the Font ID of the font that I'm using. You can check it within the lower right corner of the font thumbnail
    ' vvv
    ' vvv   vv-This first %s is where the first Param in the block will be placed
    ' vvv   vv
    ' vvv   vv vv-This second %s is where the second Param in the block will be placed.
    ' vvv   vv vv
    ' {1}{M:%s}%s

    In that sense, we're having our users type into a hidden text field, then injecting our color choice with visual logic after the fact before we copy that text with our choice into our display text object.



    ------------------------------
    Zachary Fradette
    United States
    ------------------------------



  • 5.  RE: Font color - Data driven

    Posted 01-24-2025 22:02

    Thank you so much for showing both methods, after doing some experimenting I like the input selector block. 

    This is has helped me solve my problem! And to explore new workflows with this project, Thanks!



    ------------------------------
    JOSHUA KEAGY
    Xpression operator
    Blue Ridge 11
    ------------------------------