Great, thanks. I thought that was the way it was supposed to work, but learning Python and understanding the Rhino.Wait thing kind of makes me understand that Python is fundamentally different in some areas.
That script was a test to see if I could make it into a multi-core script, but the one I got working has a tendency to crash Rhino or to generate ghost objects. There are some issues, probably caused by the way I think… Making a new document prior to running the script makes it work ok, but hitting undo takes a long time, or selecting all and deleting can cause the issues.
import rhinoscriptsyntax as rs
import System.Threading.Tasks as tasks
for i in range(40):
for ii in range(40):
for n in range(40):
Edit: just ran that script and Rhino crashed at the 27’th “frame”.