Get text axis

hello all,
i am trying to get the axis from a text. i know how to look it in rhino but not in rhinoscript. so i can rotate text.
thank you very much

image

I guess you’re looking for TextObjectPlane:

import rhinoscriptsyntax as rs
obj = rs.GetObject("Select text")
if rs.IsText(obj):
    plane = rs.TextObjectPlane(obj)
    rs.RotateObject(obj, plane.Origin, 90,  plane.ZAxis, False)

RotateText.py (187 Bytes)

yes, thank you very much!!