LayerChildren

Returns the immediate child layers of a layer.

Syntax

rhinoscriptsyntax.LayerChildren (layer)

rhinoscript.layer.LayerChildren (layer)

Parameters

layer

Required.  String or Guid.  The name or id of the layer.

Returns

List

A list of strings identifying the layer's children if successful

Example

import rhinoscriptsyntax as rs

children = rs.LayerChildren("Default")

if children:

    for child in children: print child

Also See

LayerChildCount

ParentLayer