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…
– Dale
Hello Dale,
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 rsline = rs.GetObject(“select line”)
print (“line length=” + str(rs.CurveLength (line)))rs.EnableObjectGrips (line, enable=True)
grips = rs.GetObjectGrip(“Select curve grips”)rc="“
while rc != “c”:
#rs.Command(”_-Gumball _On", False)
rs.Command(“Move”)
rc = rs.GetString(“Enter c to continue”)
rs.Command(“SelNone”)
print “editing”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.
– Dale