Returns the immediate child layers of a layer.
rhinoscriptsyntax.LayerChildren (layer)
rhinoscript.layer.LayerChildren (layer)
layer |
Required. String or Guid. The name or id of the layer. |
List |
A list of strings identifying the layer's children if successful |
import rhinoscriptsyntax as rs
children = rs.LayerChildren("Default")
if children:
for child in children: print child