Layer naming different in Rhino 5

vbscript

#1

Hi,

It seems that the Layer naming convention between Rhino 4 and Rhino 5 has changed.
Is there a way to return only the actual layer name (via script commands such as LayerChildren) rather than the full layer hierarchy? This change will cause significant re-writes to all my script files (>100,000 lines of code)

Thanks,

Shane.


#2

I guess it depends on how your existing scripts are written and what methods you are using. For example, LayerName() does have an optional argument for returning only the “short” name.

However, most of the other layer methods do not have this optional argument, so I guess your code will need to be adapted.

–Mitch