Graphics

 View Only
Expand all | Collapse all

Using visual logic to hide text shadow according to 'style' widget

  • 1.  Using visual logic to hide text shadow according to 'style' widget

    Posted 10-11-2025 23:36

    I have a scene with a 'style' widget which basically toggles the visibility of different backgrounds etc. using visual logic. I would like the text shadow to show only on one of the styles. Been trying but not quite successful. Only thing I came up with was to duplicate the text and have it as a shadow only, and link visibility. That worked but just realise I forgot to add the stagger Animation to the shadows.  I was just wondering if any alternative suggestions.



    ------------------------------
    David Rock
    Cayman Compass TV
    ------------------------------


  • 2.  RE: Using visual logic to hide text shadow according to 'style' widget

    Posted 10-12-2025 02:42

    Hi,
    You can use font change macro or material.
    https://www.rossvideo.com/resources/ross-university/xpression-material-tags-to-change-a-font-without-having-to-actually-have-another-one/



    ------------------------------
    Gabriel Rosca
    Bucharest, Romania
    ------------------------------



  • 3.  RE: Using visual logic to hide text shadow according to 'style' widget

    Posted 10-12-2025 05:49

    You can use font tags such as {43} or the font name {myFontName} or you can just change a material {M:RED}.  



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 4.  RE: Using visual logic to hide text shadow according to 'style' widget

    Posted 10-12-2025 12:54

    I was trying to do this but it wasnt working. I think I was writing the tags wrong. How can I find the tags for the materials? So like {Header}--{45}?



    ------------------------------
    David Rock
    Cayman Compass TV
    ------------------------------



  • 5.  RE: Using visual logic to hide text shadow according to 'style' widget

    Posted 10-12-2025 13:14

    So the tag comes before the text for example {43}texthere or {headerFont}texthere or you can use material {M:Materialname}texthere



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 6.  RE: Using visual logic to hide text shadow according to 'style' widget

    Posted 10-12-2025 13:44

    Every Font used in Xpression has an ID (written in Buttom-Left for every font when you are Scene Font).
    Create 2 fonts as you want - one with Shadow (let's suppose it has ID 1) and the other one without Shadow (let's suppose it has ID 2).
    Create a Text 1 object and write 50.
    Create a Text 2 object and leave it empty.
    Create a Visual Logic with:
    - one String Value and write down at Value: {1}
    - other String Value and write down at Value: {2}
    - grab the Text from Text 1 - Scene Object
    - grab the Text from Text 2 - Scene Object
    - Grab "Greater Than/Eq To" from Function Blocks - Logic and write down in Base 50, and put the Text 1 output into >= sign (to compare it with value 50)
    - Grab an Input Selector from Selectors and put the Out of "Greater Than/Eq To" into Index, link the first String Value to [0] and the second String Value to [1]
    - Grab a Concatenate function from Strings; link the Output of Input Selector in Bse of Concatenate and Text 1 intro +; Link the output to Text 2 input.
    Now the Text 2 object should have the same value as Text 1 but with Font 2
    When you are changing the text of Text 1 with a lower value like 40, the Text 2 will get same value - 40 using the Font with ID 1.



    ------------------------------
    Gabriel Rosca
    Bucharest, Romania
    ------------------------------



  • 7.  RE: Using visual logic to hide text shadow according to 'style' widget

    Posted 10-12-2025 17:22

    Thought I had it....ended up using the tags. Font is changing but the text is not updating from the moss...just keeps saying 'Header'



    ------------------------------
    David Rock
    Cayman Compass TV
    ------------------------------



  • 8.  RE: Using visual logic to hide text shadow according to 'style' widget

    Posted 10-13-2025 12:37

    I think an other way of doing is, when using Visual Logic, to enable or disable the shadow-material from the font :-).

    When you look at the font and in particular its shadow, you can see there is a material attached to the color of the shadow. In VL it is very simple to enable or disable the layer within the material.

    But beware: changing the material of the shadow is project wide! So if you are using this font in more than one place in your project, it will follow your choice throughout your complete project! But you can catch this by setting the default value on every scene were this font is used off course...



    ------------------------------
    Rob van Rooyen
    NEP GROUP INC.
    Hilversum Netherlands
    ------------------------------



  • 9.  RE: Using visual logic to hide text shadow according to 'style' widget

    Posted 10-13-2025 12:56

    That's because you have fixed strings.

    What you want to do is something more like this;



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 10.  RE: Using visual logic to hide text shadow according to 'style' widget

    Posted 10-20-2025 06:40

    Thanks all for your help...love the learning. Really appreciate it.



    ------------------------------
    David Rock
    ------------------------------