@david25 I think that I’ve managed to find the issue with these scripts following a similar problem explained by Mitch here: "::" Layer hierarchy notation doesn't work in rs.GetLayer for "layer" argument - #2 by Helvetosaur
replaced the line
layer = sc.doc.Layers.FindName(layerString)
with
layer_idx = sc.doc.Layers.FindByFullPath(layerString, True)
layer = sc.doc.Layers.FindIndex(layer_idx)
@Alasdair you’ve mentioned other bugs with these scripts, anything to look out for?
works here™ on Rhino 8:
HideLayerInLayoutDetails-updated.py (1.2 KB)
ShowLayerInLayoutDetails-updated.py (1.2 KB)