Change the Text Alignment via script

Hello all,

is there a chance to change the Orientation/Alignment of a Text Object?

in VB, I am looking for something like:

Dim newtext As New Rhino.display.Text3d (txt, pl, size)
/newtext.ChangeTheOrientationSomehow(Orientation)/
doc.Objects.AddText(newtext, atts)

Any ideas?
Thanks in advance, Laurenz

I’m not sure what you mean by changing the orientation… Text objects do respond to normal transformation operations, so if you want to move, rotate, scale, etc. just feed your text objects as arguments to those operations.

–Mitch

Hi Laurenz,

Check this method, and check Alignment and justification indexes (some of them are duplicates).

1 Like

hi djordje,

that’s exactly what I was looking for. Thank You very much!

@Mitch: sorry, “orientation” was definitely the wrong term…