Prompts the user to pick or select a single object grip.
rhinoscriptsyntax.GetObjectGrip (message=None, preselect=False, select=False)
rhinoscript.grips.GetObjectGrip (message=None, preselect=False, select=False)
message |
Optional. String. A prompt or message. |
preselect |
Optional. Boolean. Allow for the selection of a pre-selected object grip. If omitted, pre-selected object grips are not accepted (False). |
select |
Optional. Boolean. Select the picked object grip. If omitted, the object grip that is picked is not selected (False). |
List |
A list containing the following three elements if successful:
|
||||||||||||
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
curve = rs.GetObject("Select a curve", rs.filter.curve)
if curve:
rs.EnableObjectGrips( curve )
grip = rs.GetObjectGrip("Select a curve grip")
if grip: print grip[2]