Returns or modifies the font style of a text object.
rhinoscriptsyntax.TextObjectStyle (object_id, style=None)
rhinoscript.geometry.TextObjectStyle (object_id, style=None)
object_id |
Required. String or Guid. The identifier of the object. |
||||||||
style |
Optional. Number. The font style. If omitted, the current font style is returned. The font style can be any number of the following flags:
|
Number |
If a style is not specified, the current font style if successful. |
Number |
If a style is specified, the previous font style if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select text")
if rs.IsText(obj):
rs.TextObjectStyle( obj, 3 )