LayerCount

Returns the number of layers in the document.

Syntax

rhinoscriptsyntax.LayerCount ()

rhinoscript.layer.LayerCount ()

Parameters

None.

Returns

Number

The number of layers in the document.

Example

import rhinoscriptsyntax as rs

count = rs.LayerCount()

print "There are", count, "layers."

Also See

LayerNames