Graphics

 View Only
  • 1.  Xpression. XpTextObject TextWithTags,

    Posted 08-23-2023 13:10

    I am looking into using the TextwithTags property, but the documentation doesn't explain what the contents of the tags are.  I see that they are delimited by {} but I don't know what I can put in them.  when looking at one of my text fields I saw "{2}{M:} My text's content".  I can guess what that means (2 is the font id and M: might be for material).  However, when I look at the few threads that refer to the tags, I see things like {RED} but I don't know where that comes from.

    thanks in advance

    dave



    ------------------------------
    David Ball
    ------------------------------


  • 2.  RE: Xpression. XpTextObject TextWithTags,

    Posted 08-23-2023 13:13

    Hey David

    You can use font numbers or names such as {46} and {Red_Ariel_Font}.

    You can also use materials directly by using M: first so {M:Dark_Grey} 



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



  • 3.  RE: Xpression. XpTextObject TextWithTags,

    Posted 08-23-2023 13:33

    In addition, you can use {M:} to end a material. This way you can highlight a word in a different color without needing to know the base material.

    Weather System {M:RED}ALERT{M:} There's bad weather coming!

    I don't know of a way to end a font tag other than knowing what the base font is.



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