Returns or modifies the location of a text object.
rhinoscriptsyntax.TextObjectPoint (object_id, point=None)
rhinoscript.geometry.TextObjectPoint (object_id, point=None)
object_id |
Required. String or Guid. The identifier of the object. |
point |
Optional. List of 3 numbers or Point3d. A 3-D point identifying the new location point. |
Point3d |
If a new location is not specified, the 3-D point identifying the current location if successful. |
Point3d |
If a new location is specified, the 3-D point identifying the previous location if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select text")
if rs.IsText(obj):
rs.TextObjectPoint( obj, [0,0,0] )