IsLayerOn

Verifies that an existing layer is on.

Syntax

rhinoscriptsyntax.IsLayerOn (layer)

rhinoscript.layer.IsLayerOn (layer)

Parameters

layer

Required.  String or Guid.  The name of an existing layer.

Returns

True

If successful.

False

If not successful.

Example

import rhinoscriptsyntax as rs

layer = rs.GetString("Layer name")

if rs.IsLayer(layer):

    if rs.IsLayerOn(layer): print "The layer is on."

    else: print "The layer is not on."

else:

    print "The layer does not exist."

Also See

IsLayer

IsLayerChangeable

IsLayerEmpty

IsLayerLocked

IsLayerReference

IsLayerSelectable

IsLayerVisible