LayerOrder

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.

Syntax

rhinoscriptsyntax.LayerOrder(layer)

rhinoscript.layer.LayerOrder(layer)

Parameters

layer

Required.  String.  The name of an existing layer.

Returns

Number

A zero-based display order index if successful.

Example

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."

Also See