Prompts the user to pick, or select, a single curve object.
rhinoscriptsyntax.GetCurveObject (message=None, preselect=False, select=False)
rhinoscript.selection.GetCurveObject (message=None, preselect=False, select=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). |
select |
Optional. Boolean. Select the picked objects. If omitted, the objects that are picked are not selected (False). |
Tuple |
A tuple of selection information if successful. The tuple will contain the following information:
|
||||||||||||||
None |
If no object picked |
import rhinoscriptsyntax as rs
select_result = rs.GetCurveObject("Select curve")
if select_result:
print "Curve identifier: ", select_result[0]