Prompts the user to pick or select one or more point objects. Unlike GetObjects, this function does not return a list of point object identifiers. Rather, it returns a list of 3-D point coordinates - one for each selected point object. Note, the list returned is not in any sorted order.
rhinoscriptsyntax.GetPointCoordinates (message="selectpoints", preselect=False)
rhinoscript.selection.GetPointCoordinates (message="selectpoints", preselect=False)
message |
Optional. String. A prompt or message. |
preselect |
Optional. Boolean. Allow for the selection of pre-selected objects. If omitted, pre-selected objects are not accepted (False). |
List |
A list of 3-D points, one for each selected point object, if successful. |
import rhinoscriptsyntax as rs
points = rs.GetPointCoordinates()
for point in points: print point