Hi all,
Quite some time ago I wrote a RhinoPython script to add a block of layers in Rhino5.
It creates a series of new layers with succeeding numbers following a prefix based on a selected sub layer, and the new layers will be classed as child layers to the common parent layer.
I upgraded recently to Rhino8, and the parent layer seems to be ignored, as the new layers appear as primary layers. Other than that it works fine.
These are the relevant script lines, where “layername” is the selected child layer:
parentbaselayer=rs.ParentLayer(layername)
rs.AddLayer(newname,color=layercolor,parent=parentbaselayer)
Could this be a bug?
Max.
RESOLVED, see below