IsLayerCurrent

Verifies that a layer is the current layer.

Syntax

rhinoscriptsyntax.IsLayerCurrent (layer)

rhinoscript.layer.IsLayerCurrent (layer)

Parameters

layer

Required.  String or Guid.  The name or id 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.IsLayerCurrent(layer): print "The layer is current."

    else: print "The layer is not current."

else:

    print "The layer does not exist."

Also See

IsLayer

IsLayerEmpty

IsLayerLocked

IsLayerOn

IsLayerReference

IsLayerSelectable

IsLayerVisible