Do the scripts run correctly if you type RunPythonScript?
Yes they do.
What command does Tools>Script>Run actually invoke?
Command history has this after it:
Command: _-ScriptEditor
Select Option ( Edit Run Open )R
Path of script to run ( Browse )B
So the command is “ScriptEditor”.
@Helvetosaur I didn’t check all, but in the first script, you set EnableRedraw to False but never set it back to True.
It looks like ScriptEditor resets Redraw when the script is run from ScriptEditor directly.
Yeah, If I remove / comment out the rs.EnableRedraw(False)
scripts seem to work just fine, like @Gijs pointed out.
Well in Windows Rhino, RunPythonScript, EditScript, and ScriptEditor all enable redraw automatically when a script ends. And this since Python was introduced in Rhino. So something is wrong on the Mac side, it should do this automatically as well, without having to reenable redraw - like it has worked from the beginning in Windows and I think MacRhino 7 as well.
Yes that makes sense… I’ll see what happens on Windows as well, but this needs to be logged anyhow.
RH-83100 RunScript should enable Redraw after running
RH-83100 is fixed in Rhino 8 Service Release 10