Could RhinoCommon please throw an exception instead of popping up this dialog?
when running this bad code:
import rhinoscriptsyntax as rs
if not rs.IsLayer("A"):rs.AddLayer("A")
if not rs.IsLayer("B"):rs.AddLayer("B")
import scriptcontext as sc
i = sc.doc.Layers.FindByFullPath("A",True)
sc.doc.Layers[i].Name = "B" # This fails and pops up a UI Error Window
this issue seems to be related:
https://mcneel.myjetbrains.com/youtrack/issue/RH-48321
1 post - 1 participant