Prompts the user to pick, or select, a single surface object.
rhinoscriptsyntax.GetSurfaceObject (message="select surface", preselect=False, select=False)
rhinoscript.selection.GetSurfaceObject (message="select surface", 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 = rs.GetSurfaceObject("Select surface")
if select:
print "Surface identifier: ", select[0]