Returns or modifies the text string of a text object. Text objects can be created using Rhino's Text command.
rhinoscriptsyntax.TextObjectText (object_id, text=None)
rhinoscript.geometry.TextObjectText (object_id, text=None)
object_id |
Required. String or Guid. The identifier of the object. |
text |
Optional. String. A new character or text string. |
String |
If a new text string is not specified, the current string value if successful. |
String |
If a new text string is specified, the previous string value if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select text")
if rs.IsText(obj): rs.TextObjectText(obj, "Rhino")