I want to start a python script, pause and let the user modify some grips of a line using gumball, and than start again.
How should the script know when to start back up again?
Generally, what you describe involved 2 scripts: a before and an after…
I thought that I could start it back again using a while loop and user input as you suggested in an older post.
import rhinoscriptsyntax as rs
line = rs.GetObject(“select line”)
print (“line length=” + str(rs.CurveLength (line)))
rs.EnableObjectGrips (line, enable=True)
grips = rs.GetObjectGrip(“Select curve grips”)
while rc != “c”:
#rs.Command(”_-Gumball _On", False)
rc = rs.GetString(“Enter c to continue”)
print (“new line length=” + str(rs.CurveLength (line)))
Is there any way I can use a Rhino.UI.Gumball method?
Rhino.UI.Gumball doesn’t manipulate Rhino’s built-in gumball. Rather, it’s for implementing your own gumball.