Exception from rs.IsLayer('Default')

If layer Default does not exist,
“Message: Could not find Layer with ID 00000000-0000-0000-0000-000000000000” is thrown for rs.IsLayer(…) such as when using this script (from Rhino IronPython Help):

import rhinoscriptsyntax as rs

layer = rs.GetString("Layer name")

if rs.IsLayer(layer):
    print "The layer exists."
    print "The layer does not exist."

This does not occur in V5. I also haven’t found other layer names that do this in V6.

Thank you,

@piac can you tell if this is a result of the recent model component changes we made?

EDIT: nevermind, I made a mistake while testing this. I can reproduce it.

You can track this bug here: RH-36079. The fix should be in next week’s WIP.

1 Like

This is fixed in Rhino WIP 6.0.16306.09301, just released.