Graphics

 View Only
  • 1.  VB Script and Font Macros

    Posted 02-17-2017 10:08
    Hi,

    I am working on some scenes in our XPression to use in the NLE plug-in (which I am testing to see if we are going to use).

    I have noticed that I cannot use automatic line break if the text have a right alignment. So I wrote a VB script to do the line breaks, and now I discover that Font Change Macros (eg. "Text {2}here") is not supported then using scripts.

    Even a simple script where I assign a text property to another will remove the Font Macros, like the one below:

    [FONT=courier new]dim text as xpTextObject
    dim newText as xpTextObject

    Self.GetObjectByName("text",text)
    Self.GetObjectByName("NewText",newText)

    newText.text = text.text[/FONT]

    So what to do?
    I really want to use the NLE plugin, but I need to use Font Macros and automatic line breaks at the same time.


  • 2.  RE: VB Script and Font Macros

    Posted 02-17-2017 10:09
    use .TextWithTags instead of .Text...
    #XPression


  • 3.  RE: VB Script and Font Macros

    Posted 02-17-2017 10:28
    use .TextWithTags instead of .Text...

    Thanks a lot :-) Just what I needed
    #XPression