Graphics

 View Only
  • 1.  set xptextobject's font

    Posted 05-08-2018 22:29
    How does one set the scene font for a text object in a script?
    Does xptextobject have a font property that can be set to a scene font?


  • 2.  RE: set xptextobject's font

    Posted 05-09-2018 10:39
    If its in an OnSetText script, easiest way is to just do something like this using the Font Tags feature.
    (Where you have a font named RedFont in your project)


    text = "{RedFont}" + text



    If its in an OnOnline script or elsewhere it would be done a bit differently using the "TextWithTags" property.

    The text object does have a .CurrentFont property (consult the SDK helpfile for all the properties of a textobject). The CurrentFont property only affects text added to the text object after you set the CurrentFont (since remember a textobject can have many different characters all with different fonts held within it).
    #XPression


  • 3.  RE: set xptextobject's font

    Posted 05-09-2018 18:42
    If I use CurrentFont what do I set it to if I want to use a scene font?
    #XPression


  • 4.  RE: set xptextobject's font

    Posted 05-14-2018 13:12
    I need a script example of how to change a textobjects currentfont to a scene font. There is nothing in the SDK helpfile that I can find that is helpful.
    #XPression


  • 5.  RE: set xptextobject's font



  • 6.  RE: set xptextobject's font

    Posted 05-14-2018 14:05
    Thanks! Exactly what I need.
    #XPression