Returns or modifies the height of a text object.
rhinoscriptsyntax.TextObjectHeight ( object_id, height=None )
rhinoscript.geometry.TextObjectHeight ( object_id, height=None )
object_id |
Required. String or Guid. The identifier of the object. |
height |
Optional. Number. The new text height. If omitted, the current text height is returned. |
Number |
If a height is not specified, the current text height if successful. |
Number |
If a height is specified, the previous text height if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select text")
if rs.IsText(obj):
rs.TextObjectHeight( obj, 1.0 )