Returns the current display order index of a layer as displayed in Rhino's Layer dialog box. A display order index of -1 indicates that the current Layer dialog filter does not allow the layer to appear in the layer list.
rhinoscriptsyntax.LayerOrder(layer)
rhinoscript.layer.LayerOrder(layer)
layer |
Required. String. The name of an existing layer. |
Number |
A zero-based display order index if successful. |
import rhinoscriptsyntax as rs
index = rs.LayerOrder("Default")
if index is not None:
if index==-1: print "The layer does not display in the Layer dialog."
else: print "The layer does display in the Layer dialog."