Returns or modifies the X, Y, and Z coordinates of a point object.
rhinoscriptsyntax.PointCoordinates (object_id, point=None)
rhinoscript.geometry.PointCoordinates (object_id, point=None)
object_id |
Required. string or Guid. The identifier of a point object. |
point |
Optional. list of 3 numbers or an On3dPoint. A new 3-D point location. |
Point3d |
If point is not specified, the current 3-D point location if successful. |
Point3d |
If point is specified, the previous 3-D point location if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select point", rs.filter.point)
point = rs.PointCoordinates(id)
if point: print point