Graphics

 View Only
  • 1.  Scripting 'Append'

    Posted 03-24-2012 02:09
    Hello all:

    Is there a scripting command similar to 'Append to Line', but using objects?

    I want to add an object (it's actually an existing text object, but it could be a quad) to a line of text.

    As far as I can figure out, the 'Append to Line' function only works with a text string.

    Thanks,

    Spencer


  • 2.  RE: Scripting 'Append'

    Posted 03-26-2012 08:32
    As far as I know there's no command (API or scripting) to add an object (text, quad or other type) to a textobject, but the guys from Ross will surely correct me if I'm wrong. As you correctly stated you can only add a string to an existing textobject (again, as far as I know).

    It is however possible to achieve the effect you want by aligning separate objects in your script. You can get the dimensions of a textobject and use that info together with the position data of the textobject to position your quad so the quad is next to your textobject. And when you put a different text in the textobject, the dimensions will change and the quad will be repositioned automaticly so it is next to your text again.

    #XPression